- Posts: 409
- Thank you received: 34
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Array where some fields hidden and not mandatory
- blocka
- Topic Author
- Offline
- Platinum Member
Less
More
6 years 1 week ago #167595
by blocka
Array where some fields hidden and not mandatory was created by blocka
I have an Array question where I'm hiding some fields by using CSS in template, but my array is mandatory, and so participant cannot proceed to next question because of hidden fields.
Any way to make some fields in an array mandatory (or at least, negate the ones that I have hidden from the mandatory evaluation)?
Any way to make some fields in an array mandatory (or at least, negate the ones that I have hidden from the mandatory evaluation)?
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
6 years 6 days ago #167618
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 Array where some fields hidden and not mandatory
No. A workaround would be to add a hidden "N/A" column and toggle that with JavaScript where necessary.
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
6 years 6 days ago #167635
by blocka
Replied by blocka on topic Array where some fields hidden and not mandatory
That's an interesting idea. So what I would do is:
1) Hide the fields (cells) I want to hide
2) Add the No Answer option to the question
3) Show No Answer only on the rows where I've hidden the cells
You say I can " toggle that with JavaScript" -- can you explain, show what you mean? Is there an example LSS somewhere that might demonstrate this?
1) Hide the fields (cells) I want to hide
2) Add the No Answer option to the question
3) Show No Answer only on the rows where I've hidden the cells
You say I can " toggle that with JavaScript" -- can you explain, show what you mean? Is there an example LSS somewhere that might demonstrate this?
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
6 years 6 days ago #167641
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 Array where some fields hidden and not mandatory
I did not say "Add the No Answer option to the question", I said to add another sub-question for N/A.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.