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

TOPIC: Setting conditional mandatory option

Setting conditional mandatory option 5 years 7 months ago #57580

  • paulfiner
  • paulfiner's Avatar
  • Offline
  • Expert Lime
  • Posts: 92
  • Thank you received: 1
  • Karma: 1
Hi, I have a question designed that currently looks like this:

At the moment the mandatory option is turned off as respondents don't have to complete all 6 groups. The top part is an array of texts and the bottom part is an array of numbers shown as checkboxes. What I want to do is check if any of the checkboxes have been filled in in Group 1 and if the textbox for Group 1 is empty then put up an alert to the user. This would then need to check the other columns 2 to 6 in the same way.

I realise this can only be achieved using Javascript but don't know where to start.
I could also do with trying to space out the columns in the second part to try an match the text boxes but I couldn't seem to adjust these using css either!

Any help would be greatly appreciated.


Last Edit: 5 years 7 months ago by paulfiner.
The administrator has disabled public write access.
Time to create page: 0.241 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form