Description
The “gform_zapier_feed_conditional_logic” filter allows the feed conditional logic rule to be overridden during submission, allowing multiple rules to be defined.
Usage
add_filter( 'gform_zapier_feed_conditional_logic', 'your_function_name', 10, 3 );
Parameters
- $logic string
-
$form Form Object
The form object.
-
$zap object
The Zapier feed object.
Examples
add_filter( 'gform_zapier_feed_conditional_logic', 'set_logic', 10, 3 ); function set_logic( $logic, $form, $zap ){ $logic['rules'][] = array( 'fieldId' => rgar( $zap, 'zapier_conditional_field_id' ), 'operator' => 'starts_with', 'value' => 'Test', ); return $logic; }
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Zapier version 1.8.
Source Code
This filter is located in GFZapier::conditions_met() in gravityformszapier/zapier.php.