Skip to main content
Participant
Sep 29, 2016 1:14 AM UTC
Question

Need a JavaScript for a dropdown list to trigger 2 different check boxes

Drop down list of 17 items two different check boxes 14 items would trigger 1 box 3 of the items would trigger the other.

Only 1 check box can be answered at a time

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

try67
Community Expert
Community Expert
Sep 29, 2016 7:41 AM UTC

You can use something like this code as the custom validation script of the drop-down field (make sure to tick the "Commit selected value immediately" box under its Properties - Options):

if (event.value=="Option1" || event.value=="Option2" || event.value=="Option3")

    this.getField("Checkbox1").value = "1";

else this.getField("Checkbox1").value = "2";

You'll probably need to adjust the field names and values in the code. This is just a generic example.

Translate
rakeshk21205956
Inspiring
Sep 29, 2016 7:05 AM UTC

Solution to this problem is quite simple...... contact me for answer

Translate
Legend
Sep 29, 2016 7:48 AM UTC

The forums work best if replies and discussions are PUBLIC. Please help the forums to thrive so that they can help you.

Translate