23 $this->label = esc_html__(
'Radio Buttons',
'gk-gravityview' );
24 parent::__construct();
43 $field_options = parent::field_options( $field_options, $template_id,
$field_id, $context, $input_type,
$form_id );
46 $field_options[
'choice_display'] = array(
49 'label' => __(
'What should be displayed:',
'gk-gravityview' ),
50 'desc' => __(
'This input has a label and a value. What should be displayed?',
'gk-gravityview' ),
52 'value' => __(
'Value of the input',
'gk-gravityview' ),
53 'label' => __(
'Label of the input',
'gk-gravityview' ),
59 return $field_options;
Modify field settings by extending this class.
new GravityView_Field_Radio
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
Add choice_display setting to the field.
is_choice_value_enabled()
Check whether the enableChoiceValue flag is set for a GF field.
if(empty( $created_by)) $form_id
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed