Check out the LimeSurvey source code on GitHub!

Setting conditional mandatory option

More
5 years 10 months ago - 5 years 10 months ago #57580 by paulfiner
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.

Cheers

Paul
Last Edit: 5 years 10 months ago by paulfiner.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form