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
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
6 years 6 months ago #167595 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)?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago #167618 by tpartner
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
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
6 years 6 months ago #167635 by blocka
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?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago #167641 by tpartner
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.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose