This topic is locked

default value with radio button?

11/11/2005 4:19:11 PM
ASPRunnerPro General questions
author

Is it possible to have a list of radio buttons. Say:

apple

beans

cocunut
and have it default to "apple" unless you change it? Thanks

Sergey Kornilov admin 11/14/2005

Steve,
you can not specify the default value for Radio control directly in ASPRunnerPro.
However you can modify generated files to make this.

Open include\..._aspfunctions.asp file from ASPRunner output folder with a text editor.

Locate the following line there:

BuildEditControl = BuildRadioControl(sFieldName , sValue)

and replace it with:

BuildEditControl = BuildRadioControl(sFieldName , sDefault)



Then locate GetDefaultValue function and modify it this way:

if strField="Field" then GetDefaultValue = "apple" end if



where Field is your actual field name.