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

Question

Question

Remove radio button value

asked on September 3, 2020

I have a radio button with A, B and C values. On drop down change, I would like to remove C value. How do I do this using Javascript in Forms?

0 0

Replies

replied on September 8, 2020

This might cause some issues when you are looking at the data. Since you are using two different radio buttons, if a user filling out the form selects A on RadioABC, that would be different than a user who selects A on RadioAB. If you are using reports or the monitor page, it wouldn't think those two A choices were the same. 

I would either load the radio button choices from a lookup that only returned A and B when the drop down was set to something specific, or go with the JS method of hiding C like you asked about. 

1 0
replied on September 4, 2020 Show version history

It might be easier to do this with Field Rules rather than JavaScript.

Create two Radio Button areas: one with A, B, C and another with A, B.

 

 

In Field Rules, set two rules: one to show the A, B and another to hide the A, B, C:

 

You can add additional Field Rules to show/hide either Radio Button area based on the Drop-down option selected.

0 0
replied on September 4, 2020

Thanks

0 0
replied on September 8, 2020

Thanks. How do you add lookup rule to radio buttons? My radio buttons do not show up in fill part in lookup rule

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

Sign in to reply to this post.