- Posts: 57
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Mandatory
- scene143
- Topic Author
- Offline
- Senior Member
Less
More
3 years 8 months ago #203494
by scene143
Mandatory was created by scene143
Hi,
I have 2 question QS7c (Multichoice) & QS8 (Multichoice) both are Mandatory question
I set the conditions in QS81 based on QS7c in Subquestion Relevance but when previewing the survey it is accepting blank.
Can anyone help me with this am not sure what I did wrong?
Attached survey for your reference.
Regards
Sara
I have 2 question QS7c (Multichoice) & QS8 (Multichoice) both are Mandatory question
I set the conditions in QS81 based on QS7c in Subquestion Relevance but when previewing the survey it is accepting blank.
Can anyone help me with this am not sure what I did wrong?
Attached survey for your reference.
Regards
Sara
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12941
- Thank you received: 3979
- scene143
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 57
- Thank you received: 1
3 years 8 months ago #203502
by scene143
Replied by scene143 on topic Mandatory
I am getting QS8 correctly as per QS7c condition
If i click Next in QS8 without clicking any option it is going next section or question. Ideally, it should be Mandatory (Resp has to click any answer)
If i click Next in QS8 without clicking any option it is going next section or question. Ideally, it should be Mandatory (Resp has to click any answer)
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12941
- Thank you received: 3979
3 years 8 months ago #203520
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Mandatory
Hi, again I do not see an issue.
Either I get the error message
or proceed to a next question.
BUT: This is a classification of the respondents.
You should do this be ExpressionManager in a hidden equation ("QClass") like
{if(QS7c_SQ001!="Y" and QS7c_SQ002!="Y" and QS7c_SQ003=="Y",1,
if(QS7c_SQ001=="Y" and QS7c_SQ002!="Y" and QS7c_SQ003!="Y",2,
if(QS7c_SQ001!="Y" and QS7c_SQ002=="Y" and QS7c_SQ003!="Y",3,
if(QS7c_SQ001=="Y" and QS7c_SQ002!="Y" and QS7c_SQ003=="Y",4,
if(QS7c_SQ001!="Y" and QS7c_SQ002=="Y" and QS7c_SQ003=="Y",5,
if(QS7c_SQ001=="Y" and QS7c_SQ002=="Y" and QS7c_SQ003!="Y",6,
if(QS7c_SQ001=="Y" and QS7c_SQ002=="Y" and QS7c_SQ003=="Y",7,0)))))))}
Joffm
Either I get the error message
or proceed to a next question.
BUT: This is a classification of the respondents.
You should do this be ExpressionManager in a hidden equation ("QClass") like
{if(QS7c_SQ001!="Y" and QS7c_SQ002!="Y" and QS7c_SQ003=="Y",1,
if(QS7c_SQ001=="Y" and QS7c_SQ002!="Y" and QS7c_SQ003!="Y",2,
if(QS7c_SQ001!="Y" and QS7c_SQ002=="Y" and QS7c_SQ003!="Y",3,
if(QS7c_SQ001=="Y" and QS7c_SQ002!="Y" and QS7c_SQ003=="Y",4,
if(QS7c_SQ001!="Y" and QS7c_SQ002=="Y" and QS7c_SQ003=="Y",5,
if(QS7c_SQ001=="Y" and QS7c_SQ002=="Y" and QS7c_SQ003!="Y",6,
if(QS7c_SQ001=="Y" and QS7c_SQ002=="Y" and QS7c_SQ003=="Y",7,0)))))))}
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.