Sign in to follow this  
Followers 0
Becky A

Selected Radio Button From Value List

1 post in this topic

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  
Followers 0

  • Similar Content

    • Displaying SC image in PHP site assistant generated site
      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' />";?>