Single-choice radio button

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…

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.

Subject: RE: single-choice radio button

im sorry…the error will only occur if the keyword is synonyms e.g “New York | NYC”

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.

Subject: RE: single-choice radio button

default is checked in r6…