24 var
$icon =
'dashicons-arrow-down';
27 $this->label = esc_html__(
'Select',
'gk-gravityview' );
28 parent::__construct();
47 $field_options = parent::field_options( $field_options, $template_id,
$field_id, $context, $input_type,
$form_id );
50 $field_options[
'choice_display'] = array(
53 'label' => __(
'What should be displayed:',
'gk-gravityview' ),
54 'desc' => __(
'This input has a label and a value. What should be displayed?',
'gk-gravityview' ),
56 'value' => __(
'Value of the input',
'gk-gravityview' ),
57 'label' => __(
'Label of the input',
'gk-gravityview' ),
63 return $field_options;
Modify field settings by extending this class.
new GravityView_Field_Select
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
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
Add choice_display setting to the field.