Skip to main content
Participant
September 29, 2016
Question

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

  • September 29, 2016
  • 2 replies
  • 408 views

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 has been closed for replies.

2 replies

try67
Community Expert
Community Expert
September 29, 2016

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.

rakeshk21205956
Inspiring
September 29, 2016

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

Legend
September 29, 2016

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