Uncheck a radio button during "onLoad" script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2009 12:54 PM
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 ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2012 10:46 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2012 11:04 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2012 10:48 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2018 05:36 AM
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!