gform_use_post_value_for_conditional_logic_save_entry

Description

The “gform_use_post_value_for_conditional_logic_save_entry” filter in Gravity Forms specifies whether to fetch values from the $_POST when evaluating a field’s conditional logic. Defaults to true for new entries and false for existing entries.

Usage

The following would apply to all forms.

add_filter( 'gform_use_post_value_for_conditional_logic_save_entry', 'your_function_name', 10, 3 );

To limit the scope of your function to a specific form, append the form ID to the end of the hook name.
Format: gform_use_post_value_for_conditional_logic_save_entry_FORMID

add_filter( 'gform_use_post_value_for_conditional_logic_save_entry_6', 'your_function_name', 10, 3 );

Parameters

  • $read_value_from_post array

    Should the value be fetched from the $_POST?

  • $form Form Object

    The current form object.

  • $entry Entry Object

    The current entry object.

Examples

Enable fetching from post by default:

add_filter( 'gform_use_post_value_for_conditional_logic_save_entry', '__return_true' );