Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Make one subquestion not mandatory on a mandatory array

Make one subquestion not mandatory on a mandatory array 3 years 8 months ago #91742

  • nuin
  • nuin's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
Hi

We have a question that is mandatory in our survey, but one of the subquestions can be left blank if the user choose to. Is it possible to do this with some validation rule for that specific subquestion?

Thanks in advance
The administrator has disabled public write access.

Make one subquestion not mandatory on a mandatory array 3 years 7 months ago #92623

  • nuin
  • nuin's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
Bump
The administrator has disabled public write access.

Make one subquestion not mandatory on a mandatory array 3 years 7 months ago #92633

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9346
  • Thank you received: 1338
  • Karma: 386
Just add a Yes/No qyestion with:
I don't want to andwser to next question (Yes/No/no answer)

And use conditions to hide the question.
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Make one subquestion not mandatory on a mandatory array 3 years 7 months ago #92659

  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 6312
  • Thank you received: 1407
  • Karma: 546
You cannot place conditions on array sub-questions.

A possible solution would be to:
- add a "N/A" answer too the array
- hide the "No Answer" column with CSS/JavaScript
- use JavaScript to initially check "No Answer" in the "optional" row
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
The following user(s) said Thank You: DenisChenu, nuin

Make one subquestion not mandatory on a mandatory array 3 years 7 months ago #92699

  • nuin
  • nuin's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
Thanks a lot. I will check and report back.

Cheers
The administrator has disabled public write access.
Time to create page: 0.764 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form