DescriptionUsageParametersExamplePlacementSinceSource Code
Description
The gform_conditional_logic_values_input JavaScript filter in Gravity Forms allows filtering the input string provided for the conditional logic comparison value.
Usage
gform.addFilter( 'gform_conditional_logic_values_input', function( str, objectType, ruleIndex, selectedFieldId, selectedValue ) {
// do stuff
return str;
} );
Parameters
str stringString of the HTML input tag.objectType stringThe type of object: page, field, next_button, confirmation, notification.ruleIndex intThe index of the rule. The first rule is indexed at 0.selectedFieldId intThe ID of the field chosen for comparison.selectedValue stringThe value used for comparison.
Example
add_action( 'admin_print_scripts', function () {
if ( method_exists( 'GFForms', 'is_gravity_page' ) && GFForms::is_gravity_page() ) { ?>