Error message without validation equation

More
1 month 1 week ago #205599 by brais24
Hi people, I write you again because i have a question that i dont found answer, i explain you.

I have 2 question, for example Q1 (wich is a yes/not question), and a Q2(wich is a matrix question wich have too A1(yes) subquestion and A2(not) subquestion.

I want to show an error message if you select NO on both questions, I be able to do that with equation validation question and tips for equation validation question, but the problem if i do with that way is, you only can continue with the survey if the validation is done.

What i want is show the error message if both is NO, but even if both is NO you can continue with the survey, do you know any way to do that?

My LS version is 2.72

Thanks for the help

Please Log in to join the conversation.

LimeSurvey Partners
More
1 month 1 week ago - 1 month 1 week ago #205601 by Joffm

What i want is show the error message if both is NO, but even if both is NO you can continue with the survey, do you know any way to do that?


The way I would go is to have no error message that stops the respondent, but to have a validation tip in different color (red) if there are two "No".
And the validation equation itself is something that is always true.

Nevertheless I do not quite understand your design of the array with "Yes" and "No" as subquestions. Or are they "answer options"?

So please send these two questions as lss export.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 1 month 1 week ago by Joffm.

Please Log in to join the conversation.

More
1 month 1 week ago #205602 by brais24
Yes, sorry, is an answer option, I cant export lss right now but i can sen an image of the questions, I want show the error message on the second question that say somethinh like "You have selected NO on this question and on a previous question, please, make sure that is right"
Attachments:

Please Log in to join the conversation.

More
1 month 1 week ago - 1 month 1 week ago #205603 by Joffm
Hi,
do you have any reason why you use two different types of question?
Okay:
validation equation:
(Q5A=="Y" OR Q5A=="N") AND (Q5B_SQ001== OR Q5B_SQ001==[Code of No]) So this is always true. Validation tip: {if(Q5A=="N" and Q2_SQ001==Code of No,"<span style='color:red'>You have selected NO on this question and on a previous question, please, make sure that is right</span>","That's fine")} As I do not know how the codes are, it's up to you. But you see how it can be done. Joffm [attachment=21991]s1.PNG[/attachment] I don't know why it is mixed up.[Code of Si] OR Q5B_SQ001==) So this is always true. Validation tip: {if(Q5A=="N" and Q2_SQ001==Code of No,"<span style='color:red'>You have selected NO on this question and on a previous question, please, make sure that is right</span>","That's fine")} As I do not know how the codes are, it's up to you. But you see how it can be done. Joffm [attachment=21991]s1.PNG[/attachment] I don't know why it is mixed up.[Code of No])
So this is always true.

Validation tip:
{if(Q5A=="N" and Q2_SQ001==Code of No,"<span style='color:red'>You have selected NO on this question and on a previous question, please, make sure that is right</span>","That's fine")}

As I do not know how the codes are, it's up to you.
But you see how it can be done.

Joffm



I don't know why it is mixed up.


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 1 month 1 week ago by Joffm.

Please Log in to join the conversation.

More
1 month 1 week ago #205608 by DenisChenu
I use an Dispaly text question for such system.

I put condition on this question and good class name

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.
Attachments:

Please Log in to join the conversation.

More
1 month 1 week ago #205612 by Joffm
Exactly, much better, much easier.

In 2.73 template "default"



Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:

Please Log in to join the conversation.

More
1 month 1 week ago #205628 by DenisChenu
You can even add a checkbox question (multiple choice with one option) mandatory.

«Please confirm you want to answer both question with No"

then : you allow user to answer no, but they have to confirm it.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.

Please Log in to join the conversation.

More
1 month 1 week ago #205671 by brais24
Ok, thanks for the help, I will try what you say.

I know the method with display text, but I want a message inside of the second question, for that reason I dont use that.

Thanks to all.

Please Log in to join the conversation.

More
1 month 1 week ago #205681 by DenisChenu
You can even add in question text :

{if(YOIUREST,"","<p class='alert alert-danger'>You choose NO 2 times, your realluy sure ?</p>")}

Replace YOURTEST :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now