gform_get_field_value

The Gravity Forms gform get field value hook.

Description

apply_filters( 'gform_get_field_value', (unknown) $value, (unknown) $lead, (unknown) $field ); 

Parameters (3)

0. $value (unknown)
The value.
1. $lead (unknown)
The lead.
2. $field (unknown)
The field.

Usage

To run the hook, copy the example below.
  1. $value = apply_filters( 'gform_get_field_value', $value, $lead, $field ); 
  2.  
  3. if ( !empty( $value ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gform_get_field_value callback 
  2. function filter_gform_get_field_value( $value, $lead, $field ) { 
  3. // make filter magic happen here... 
  4. return $value
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gform_get_field_value', 'filter_gform_get_field_value', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gform_get_field_value', 'filter_gform_get_field_value', 10, 3 ); 

Defined (2)

The filter is defined in the following location(s).

/forms_model.php  
  1. $value = apply_filters( 'gform_get_field_value', $value, $lead, $field ); 
/entry_list.php  
  1. $value = apply_filters( 'gform_get_field_value', $value, $lead, $field );