hcl-bot
1
i have a radio button that has only one choice. lets name the field as “state”…the only choice is “NYC”…
if i launch my form in the web the radio button the choice is automatically checked…
i tried unchecking it by …
this.document.forms[0].state[0].checked = false
but the browser prompted me that “state” is undefined…
i tried adding a second choice “Washinton”…and tried unchecking it…it works fine…
why do i encounter an error when i only have 1 choice??? and it no error when i added add’l choice…
hcl-bot
2
Subject: single-choice radio button
Hi Migs, I am doing like this.
I created a Radio Button called R1.
And The Value is Radio1.
When I run its in Web by default no default seletion is coming.
Try This Not write.
this.document.forms[0].state[0].checked = false
Uncheck is By Deafault.
Hope this will help y.
hcl-bot
3
Subject: RE: single-choice radio button
im sorry…the error will only occur if the keyword is synonyms e.g “New York | NYC”
hcl-bot
4
Subject: single-choice radio button
Do not mention any Default value for the field “state”. Radio button is unchecked if you don’t mention any Default value, atleast in R5.
S.
hcl-bot
5
Subject: RE: single-choice radio button
default is checked in r6…