Uncheck a radio button during "onLoad" script?

Not applicable

I have a series of radio buttons that I need make sure are NOT CHECKED when a form is initially displayed.

Would anyone be willing to share some code that I can use during an "onLoad" script to uncheck any radio buttons that are checked by default? Or maybe there is a setting that I'm overlooking that will prevent a default check ..

Any help very much appreciated ..

8 REPLIES 8

Hey John, this works for me, thanks for the solution. The one issue I have is that the field is flagged green since it has already been touched by the script/default value. Is there anyway to set the mandatory flag to red in the client script so it looks untouched?


shaffl
Kilo Explorer

This sounds like what I need to make the survey work, however I don't know where to reference the script, or what the variable name should be.


Hey Shaffl,

John uses the term variable name because he is referring to the service catalog. If you are trying this on a regular form, I believe you can just use the field name (not label). If you are using the service catalog you can right click on the variable you are trying this on the there should be a field labeled name, that would be your variable name.


Community Alums
Not applicable

If you have radio buttons and have for an example 'Yes' and 'No' choice.

Set the default value to 'Yes' and mark Do not select the first choice if Yes is the first in order.

Tada!