HomeDocumentationTutorialsIncluding a radio using data from a database field

Including a radio using data from a database field

You can add a radio field to your form by defining its properties and also including the field in your list of add or edit fields.

 

Here's a sample code to include a radio field to your form using data from a database field;  

 

PHP
 
$objConfig->radio('field_name', 'field_label', $required = 0)
$objConfig->childDatabase('table_name', 'id_field', 'value_field');