Welcome to the LimeSurvey Community Forum

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

Text array: Only visible row as mandatory

  • squidy
  • squidy's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 5 months ago #207393 by squidy
Hello.
I'm using this script to make array text more functional to user. I need to set this field as mandatory. However, the mandatory must to be set only on visible rows. Is there a way to do that?

Using LS 5.x
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 5 months ago #207397 by tpartner
Replied by tpartner on topic Text array: Only visible row as mandatory
You cannot change the mandatory status via JavaScript.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • squidy
  • squidy's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 5 months ago #207447 by squidy
Replied by squidy on topic Text array: Only visible row as mandatory
Do you have any trick about it?

Using LS 5.x
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 5 months ago #207449 by tpartner
Replied by tpartner on topic Text array: Only visible row as mandatory
I suppose you could insert a hidden multiple-choice question, have the JavaScript toggle the checkboxes and use an array filter based on the hidden question.

Unfortunately, don't currently have time to develop that.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose