- Posts: 409
- Thank you received: 34
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Prevent next if some type of list value selected?
- blocka
- Topic Author
- Offline
- Platinum Member
Less
More
5 years 8 months ago #172554
by blocka
Prevent next if some type of list value selected? was created by blocka
I have a list type question (radio), where the values are populated from five custom attributes in the participant table.
The values are phone numbers.
Not all participants have five phone numbers, so in some cases the list would have sub-questions with the value "None".
I want to prevent the question from submitting if the respondent chooses one of the radio options with the value "None".
How can I do this?
The values are phone numbers.
Not all participants have five phone numbers, so in some cases the list would have sub-questions with the value "None".
I want to prevent the question from submitting if the respondent chooses one of the radio options with the value "None".
How can I do this?
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
5 years 8 months ago #172557
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Prevent next if some type of list value selected?
Since LS is still lacking a answer relevance, you would need to create a Question validation equation.
Other workarounds (which might work):
1. Create a multiple short text question with default answers filled with an equation that fills only when NOT NONE. Hide this question via CSS and use that question as array filter on your radio list question. That should filter all NONE entries.
2. Use a Multiplechoice question with subquestion relevance. Limit answer to max. 1
Other workarounds (which might work):
1. Create a multiple short text question with default answers filled with an equation that fills only when NOT NONE. Hide this question via CSS and use that question as array filter on your radio list question. That should filter all NONE entries.
2. Use a Multiplechoice question with subquestion relevance. Limit answer to max. 1
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: blocka
The topic has been locked.
- LouisGac
- Visitor
5 years 8 months ago #172560
by LouisGac
Replied by LouisGac on topic Prevent next if some type of list value selected?
I would do it via question theme to use conditions via Twig.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
5 years 8 months ago #172566
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Prevent next if some type of list value selected?
Maybe use JavaScript to remove all "None" options.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- blocka
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 409
- Thank you received: 34
5 years 8 months ago #172582
by blocka
Replied by blocka on topic Prevent next if some type of list value selected?
Array filter with multiple short question text was the "simplest" approach! Thanks
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
5 years 8 months ago #172626
by jelo
www.limesurvey.org/forum/future-features...ubquestion-relevance
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Prevent next if some type of list value selected?
WellLouisGac wrote: I would do it via question theme to use conditions via Twig.
www.limesurvey.org/forum/future-features...ubquestion-relevance
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.