Select to view content in your preferred language

Radio Butoon Default On

2422
1
06-13-2012 10:18 AM
OliviaBrown1
New Contributor
I have 3 radio buttons: Male, Female and Unknown.  I want the Unknown button to be the default: Male ()  Female ()  Unknown (.)

Is this possible?
Tags (3)
0 Kudos
1 Reply
nev
by
New Contributor III
Sure is, in the load event of your editform just put
thisevent.object.pages("Page1").controls("unknownradiobuttonName").value = true
replace the values in "" with e names of your page and control

If the radiobuttons are not on page1 the you will need to activate that page first then activate page1 after setting the value
eg
thisevent.object.pages("radiobuttonPage").activate
thisevent.object.pages("radiobuttonPage").controls("unknownradiobuttonName").value = true
thisevent.object.pages("Page1").activate

Mick
0 Kudos