Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

mandatory questions and branching/conditions

  • RaCMJS
  • RaCMJS's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 8 months ago #138411 by RaCMJS
I have a survey in which I need a response to all questions, but it also has branching. Like this:

q1 - Do you live in:
- US
- Another country

q2 (for US only) - Enter your contact information:
Name
Email
Phone
ZIP

q3 (for other country only) - Enter your contact information:
Name
Email
Phone

I have q2 and q3 separate so I can force US ZIP and phone format validation on people in the US and leave those restrictions out for those not in the use. Respondents must complete all data, so all questions are mandatory. The problem is that if you are in the US and you fill out all information you still get the validation message saying that you haven't completed all questions. I am assuming this is because q3 is also mandatory. Is there some other way to set this up, to prevent this problem?

Thanks.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #138416 by Joffm
Hi,
Not knowing how you ordered the questions (all in one page, in different groups, etc.):
Did you set the relevance of q2 (q1==US) and q3 (q1==other) according to the answer of q1?

Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #138650 by Joffm
Hi,
to be honest, I cannot reproduce your problem.
I attached two sample surveys.
The first with two groups (your q2 and q3) with the relevance of q1.

In the second sample survey I included only one group with contact informations.
The zip with relevance (q1=US)
but two entry fields for phone number - 1 for US (here you can validate), and 1 for other countries.

Have a look

Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
7 years 8 months ago #139226 by YvesLanglois
Replied by YvesLanglois on topic mandatory questions and branching/conditions
Hello Joffm,

quick question since I have a similar problem with mandatory questions. When allowing previous navigation in your Test Branches 2
Survey can you repeat these steps:

-answer US
-click next
-change your mind at the US contact information
-click previous
-answer Other country
-click next

LimeSurvey then shows a warning for unanswered question even if it is the first time the question is displayed.

Did you see this problem before?


Thank you
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #139262 by Joffm
Hi, Yves,
sorry, I can't reproduce it.
Now I am working with LS 2.50 160715 and before with 160620.

Here you can watch a small video
Youtube (Branches)

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
7 years 7 months ago #139402 by YvesLanglois
Replied by YvesLanglois on topic mandatory questions and branching/conditions
Thank you for your answer.

You are right that using build 160620 remove this problem.

However, it was a slightly modified example of the problem I have. I added a complete example in another topic. I cannot test it on a more recent build, if you could try it I would appreciate.


www.limesurvey.org/forum/can-i-do-this-w...ed-when-it-shouldn-t


Thank you.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose