Jump to content

Selected Radio Button From Value List


This topic is 4854 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

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));?>

</td>

Thank you.

Becky

Link to comment
Share on other sites

This topic is 4854 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

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