I'm looking for a way to set a checkbox/radio button to a default value. I have limited knowledge of Javascript so I'm hoping I can do this without code.
Thanks,
Nate
I'm looking for a way to set a checkbox/radio button to a default value. I have limited knowledge of Javascript so I'm hoping I can do this without code.
Thanks,
Nate
I recommend using Firefox when developing javascript. I find it easy to preview a form, right click and inspect element. then you can use the dropdown on the selected element to copy it's unique identifier. This will be what you need to use to do the following:
$('[FieldID]').attr('checked', true);
Your [FieldID] should likely contain a hyphen with a number at the end. In the case of your checkbox image, I would expect the "Checkbox 1" field to have a value of '#[FieldNumber of checkbox field]-0'