gppa_require_value_to_be_in_dynamic_choices
Description
Filter if the hydrated value should be validated against the available choices if the choices are dynamically populated.
Usage
Applied globally
add_filter( 'gppa_require_value_to_be_in_dynamic_choices', 'my_custom_function' );
Applied to specific form
add_filter( 'gppa_require_value_to_be_in_dynamic_choices_FORMID', 'my_custom_function' );
Applied to specific field
add_filter( 'gppa_require_value_to_be_in_dynamic_choices_FORMID_FIELDID', 'my_custom_function' );
Parameters
$require_value_to_be_in_dynamic_choices
bool
Whether value will be checked against available dynamic choices. (default: true
)
$field
GF_Field
Current field being populated.
$form
array
Current form.
Since
1.2.26
Hook added.