gform_view

Description

The “gform_view” action allows additional actions to be performed based on the form view. Some form views that are used are “entries”, “entry”, “notification”, and “settings”.

Usage

add_action( 'gform_view', 'your_function_name' );

Parameters

  • $view string

    The current view.

  • $id string

    The form ID being viewed.

Example

add_action( 'gform_view', 'your_function_name' );

function your_function_name() {
   // Do something
}

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This filter is located in gravityforms.php.