Jump to content

  •  

Photo

Selected Radio Button From Value List


  • Please log in to reply
No replies to this topic

#1 Becky A  newbie

Becky A
  • Newbies
  • Pip
  • 1 posts
  • FM Application:11
  • Platform:Windows XP
  • Skill Level:Intermediate

Posted 13 December 2010 - 08:15 AM

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




FMForum Advertisers