Jump to content
Sign in to follow this  
Becky A

Selected Radio Button From Value List

Recommended Posts

In my Site Assistant generated "Add Record" and "Find Record" pages I have some radio button fields with two options, Yes and No. The database includes a value list called "YesNo". I defaulted these radio buttons on the database by auto-entering "No" or "Yes" but would also like to default them for people using the Web site.

A radio button field on the Add Record page that I want to default to No is called "Disclaimer". Here is the PHP. Can someone tell me how to mark "No" as selected when it comes from a value list?

<td class="field_data"><?php getInputChoices("radio", layout->getValueList('YesNo',

$record->getRecordId()), $record->getField('Disclaimer', 0) ,

getFieldFormName('Disclaimer', 0, $record));?>


Thank you.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

By using this site, you agree to our Terms of Use.