You are viewing limited content. For full access, please sign in.

Question

Question

Select radio button in javascript

asked on April 18, 2019

Based on some responses in the form, I want to select Yes value for a radio button. ow do I do that please? Use Javascript? Thanks.

 

Priya

0 0

Replies

replied on April 19, 2019 Show version history

You could add a custom class called "myRadio" to the field and do something like this,

$('.myRadio input[value="Yes"]').click();

In my experience, triggering the click event has been the only way to get everything to behave properly. Changing the "checked" state directly doesn't appear to trigger some of the other events Forms attaches to the field.

Note that if you assign values to the choices, you would use those values instead.

1 0
replied on April 19, 2019

Thanks

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.