Jump to content
Sign in to follow this  
Becky A

Selected Radio Button From Value List

Recommended Posts

Becky A    0

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  

  • Similar Content

    • By SanderS
      I'm having great success with the PHP site assistant aside from one major issue. I'm not able to display images stored in Supercontainer. The code below will return a broken link. If I take the reference link and paste it into any web browser on any computer on any network, the link works fine. What obvious step am I missing?

      <td rowspan="8" class="field_data">
      <?php echo "<img src='' title='Error' alt='Error' />";?>

Important Information

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