/
KenedoProperty Type Radio
KenedoProperty Type Radio
PHP class: KenedoPropertyRadio
Recommended column type: Depending on configured choices
Object var: As property name
With the type dropdown you display a set of choices (defined in the property settings as key/value pairs), the keys are stored in the DB column.
Note: The type ‘dropdown’ works the same way with the same settings and displays the choices as dropdown.
Typical Property Settings Array
$propDefs['question_type'] = array (
'name'=>'question_type',
'label'=>KText::_('FIELD_LABEL_QUESTION_TYPE'),
'type'=>'radio',
'choices'=>array(
'textbox' => KText::_('As text box'),
'textarea' => KText::_('As multi line text box'),
'checkbox' => KText::_('As checkbox'),
'radiobuttons' => KText::_('As radio buttons'),
'dropdown' => KText::_('As dropdown'),
'upload' => KText::_('As file upload'),
'calendar' => KText::_('As calendar'),
'colorpicker' => KText::_('As color picker'),
'ralcolorpicker' => KText::_('As RAL color picker'),
'images' => KText::_('As clickable images'),
'slider' => KText::_('As slider'),
'choices' => KText::_('As choices plus text field'),
),
'default'=>'textbox',
'positionForm'=>6000,
);
Property settings
choices
Required: yes
Valid Values: associative array of strings - keys are what’s stored in the column, values are displayed in the dropdown
default
Required: no
Valid values: string (one of the keys in the ‘choices’ setting)
Define the value that should be selected initially (when the admin clicked on ‘add record’).
, multiple selections available,
Related content
KenedoProperty Type Dropdown
KenedoProperty Type Dropdown
More like this
Kenedo Properties
Kenedo Properties
More like this
KenedoProperty Type String
KenedoProperty Type String
More like this
KenedoProperty Type Boolean
KenedoProperty Type Boolean
More like this
KenedoProperty Type ID
KenedoProperty Type ID
More like this
KenedoProperty Type Join
KenedoProperty Type Join
More like this