gform_honeypot_labels_pre_render

gform_honeypot_labels_pre_render

DescriptionUsageParametersExamples1. Four new labelsPlacementSinceSource Code

Description
The gform_honeypot_labels_pre_render filter can be used to override the labels used when rendering the hidden honeypot field.
Usage
The filter which would run for all forms would be used like so:
add_filter( 'gform_honeypot_labels_pre_render', 'your_function_name' );

Parameters

$honeypot_labels array
The honeypot field labels.

Examples
1. Four new labels
This example shows how you can override the four default labels with your own custom labels.
add_filter( 'gform_honeypot_labels_pre_render', function ( $honeypot_labels ) {
return array( 'One', 'Two', 'Three', 'Four' );
} );

Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms 2.0.7.16.
Source Code
This filter is located in GFFormDisplay::get_honeypot_labels() in form_display.php

gform_hipchat_verify_ssl

gform_hipchat_verify_ssl

DescriptionUsageExamplesPlacementSource Code

Description
The 「gform_hipchat_verify_ssl」 filter in the Gravity Forms HipChat Add-On allows the verification of HipChat SSL to be enabled or disabled.
Usage
add_filter( 'gform_hipchat_verify_ssl', 'your_function_name', 10, 1 );

## Parameters
– **$verify_ssl** bool
True or False to verify SSL.

Examples
add_filter( 'gform_hipchat_verify_ssl', 'set_ssl', 10, 1 );
function set_ssl( $verify_ssl ){
return false;
}

Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GFHipChat::initialize_api() in gravityformshipchat/class-gf-hipchat.php.

gform_highrise_verifypeer

gform_highrise_verifypeer

DescriptionUsageParametersExamplesPlacementSinceSource Code

Description
The 「gform_highrise_verifypeer」 filter in the Gravity Forms Highrise Add-On allows the cURL CURLOPT_SSL_VERIFYPEER option to be enabled/disabled.
Usage
add_filter( 'gform_highrise_verifypeer', 'your_function_name', 10, 1 );

Parameters

is_enabled bool
True to enable peer verification. False to bypass peer verification. Defaults to true.

Examples
add_filter( 'gform_highrise_verifypeer', 'verifypeer', 10, 1 );
function verifypeer( $is_enabled ){
return false;
}

Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in version 1.2.
Source Code
This filter is located in HighriseAPI::make_request() in gravityformshighrise/includes/Highrise/HighriseAPI.php.

gform_highrise_verifyhost

gform_highrise_verifyhost

DescriptionUsageParametersExamplesPlacementSinceSource Code

Description
The 「gform_highrise_verifyhost」 filter in the Gravity Forms Highrise Add-On allows the cURL CURLOPT_SSL_VERIFYHOST option to be enabled/disabled.
Usage
1add_filter( 'gform_highrise_verifyhost', 'your_function_name', 10, 1 );

Parameters

is_enabled bool
True to enable host verification. False to bypass host verification. Defaults to true.

Examples
1234add_filter( 'gform_highrise_verifyhost', 'verifyhost', 10, 1 );function verifyhost( $is_enabled ){    return false;}
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in version 1.2
Source Code
This filter is located in HighriseAPI::make_request() in gravityformshighrise/includes/Highrise/HighriseAPI.php.

gform_{$SHORT_SLUG}_field_value

gform_{$SHORT_SLUG}_field_value

DescriptionShort Slug ValuesUsageParametersExamples1. ActiveCampaign – Use Choice Text Instead of Value2. ActiveCampaign – Replace Commas with Pipes3. Emma – Format Checkbox Field4. Help Scout – Change Value of Specific Field5. Zoho CRM – Format Date Field6. Zoho CRM – Format Checkbox FieldPlacementSinceSource Code

Description
This filter can be used to modify a value before it is sent to a third-party by one of the Add-On Framework based add-ons. If you want to filter the value for any add-on you can use gform_addon_field_value.
Short Slug Values
The Gravity Forms Add-On Slugs article lists the available short slugs to use with this hook:
The following add-ons listed in the slug article do not use the hook:

Gravity Forms CLI Add-On
Gravity Forms Debug Add-On
Gravity Forms Gutenberg Add-On

The Zapier Add-On implements its own version of the hook:

gform_zapier_field_value

Usage
The base filter which would run for all forms and all fields would be used like so:
1add_filter( 'gform_helpscout_field_value', 'your_function_name', 10, 4 );
To target a specific form append the form id to the hook name. (format: gform_{$SHORT_SLUG}_field_value_FORMID)
1add_filter( 'gform_helpscout_field_value_10', 'your_function_name', 10, 4 );
To target a specific field append both the form id and the field id to the hook name. (format: gform_{$SHORT_SLUG}_field_value_FORMID_FIELDID)
1add_filter( 'gform_helpscout_field_value_10_3', 'your_function_name', 10, 4 );

Parameters

$value string
The value to be modified.

$form Form Object
The form currently being processed.

$entry Entry Object
The entry currently being processed.

$field_id string
The ID of the field currently being processed.

Examples
1. ActiveCampaign – Use Choice Text Instead of Value
This example shows how you can replace the value of a choice based survey field with the choice text.
1234567891011add_filter( 'gform_activecampaign_field_value', 'gf_get_choice_text', 10, 4 );function gf_get_choice_text( $value, $form, $entry, $field_id ) {    gf_activecampaign()->log_debug( __METHOD__ . '(): running.' );    $field = GFAPI::get_field( $form, $field_id );     if ( is_object( $field ) && $field->type == 'survey' ) {        $value = $field->get_value_export( $entry, $field_id, true );        gf_activecampaign()->log_debug( __METHOD__ . '(): Value: ' . $value );    }    return $value;}
2. ActiveCampaign – Replace Commas with Pipes
This example shows how you can replace the commas used to separate checkbox or multi select choices with pipe characters.
123456789101112add_filter( 'gform_activecampaign_field_value', 'gf_replace_commas_with_pipes', 10, 4 );function gf_replace_commas_with_pipes( $value, $form, $entry, $field_id ) {    gf_activecampaign()->log_debug( __METHOD__ . '(): running.' );    $field = GFAPI::get_field( $form, $field_id );     if ( is_object( $field ) && ( $field->type == 'checkbox' || $field->type == 'multiselect' ) ) {        $value = str_replace( ', ', '||', $value );        gf_activecampaign()->log_debug( __METHOD__ . '(): Value: ' . $value );    }     return $value;}
3. Emma – Format Checkbox Field
This example shows how you can reformat the checkbox field value to be passed as an array instead of a string.
123456789add_filter( 'gform_emma_field_value', function ( $value, $form, $entry, $field_id ) {    $field = GFAPI::get_field( $form, $field_id );     if ( is_object( $field ) && $field->get_input_type() === 'checkbox' ) {        $value = explode( ', ', $value );    }     return $value;}, 10, 4 );
4. Help Scout – Change Value of Specific Field
This example shows how you can change the value of field 3 on form 10 before it is passed to Help Scout.
1234add_filter( 'gform_helpscout_field_value_10_3', function ( $value, $form, $entry, $field_id ) {     return 'your new value';}, 10, 4 );
5. Zoho CRM – Format Date Field
This example shows how you can reformat the entry date from yyyy-mm-dd to the format configured on the field.
123456789add_filter( 'gform_zohocrm_field_value', function ( $value, $form, $entry, $field_id ) {    $field = GFAPI::get_field( $form, $field_id );     if ( is_object( $field ) && $field->type == 'date' ) {        $value = GFCommon::date_display( $value, $field->dateFormat );    }     return $value;}, 10, 4 );
6. Zoho CRM – Format Checkbox Field
This example shows how you can reformat the checkbox field value to pass true or false instead of the choice. This snippet is not needed if you』re using version 1.8 of the add-on or newer.
1234567891011add_filter( 'gform_zohocrm_field_value', function ( $value, $form, $entry, $field_id ) {    gf_zohocrm()->log_debug( __METHOD__ . '(): Running...' );    $field = GFAPI::get_field( $form, $field_id );     if ( is_object( $field ) && $field->get_input_type() === 'checkbox' ) {        gf_zohocrm()->log_debug( __METHOD__ . '(): Checkbox value to true or false.' );        $value = $value ? 'true' : 'false';    }     return $value;}, 10, 4 );
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms 1.9.10.11.
Source Code
1234gf_apply_filters( "gform_{$slug}_field_value", array(    $form['id'],    $field_id), $field_value, $form, $entry, $field_id );
This filter is located in GFAddOn::maybe_override_field_value() in includes/addon/class-gf-addon.php.

gform_helpscout_tags

gform_helpscout_tags

DescriptionUsageParametersExamplesPlacementSource Code

Description
This filter is used to dynamically alter the tags being created for a Help Scout conversation.
Usage
Applies to all forms:
1add_filter( 'gform_helpscout_tags', 'your_function_name', 10, 4 );
Applies to a specific form:
1add_filter( 'gform_helpscout_tags_4', 'your_function_name', 10, 4 );
Parameters

$tags array
An array of tags to be assigned to the conversation.

$feed Feed Object
The current feed object.

$entry Entry Object
The current entry object.

$form Form Object
The current form object.

Examples
This example retrieves the license type a user has associated to their user meta and adds it as a tag.
123456789101112add_filter( 'gform_helpscout_tags', 'add_license_tag', 10, 4 );function add_license_tag( $tags, $feed, $entry, $form ) {     global $current_user;    get_currentuserinfo();     $license_type = get_user_meta( $current_user->ID, 'license_type', 'No License' );     $tags[] = $license_type;     return $tags;}
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
1gf_apply_filters( 'gform_helpscout_tags', $form['id'], $tags, $feed, $entry, $form )
This filter is located in GFHelpScout::process_feed() in class-gf-helpscout.php.

gform_helpscout_process_note_shortcodes

gform_helpscout_process_note_shortcodes

DescriptionUsageParametersExamplesPlacementSinceSource Code

Description
The 「gform_helpscout_process_note_shortcodes」 filter in the Help Scout Add-On for Gravity Forms indicates whether shortcodes should be processed in the notes.
Usage
The following would apply to all forms:
add_filter( 'gform_helpscout_process_note_shortcodes', 'your_function_name', 10, 3 );

To target a specific form, append the form id to the hook name. (format: gform_helpscout_process_note_shortcodes_FORMID)
add_filter( 'gform_helpscout_process_note_shortcodes_1', 'your_function_name', 10, 3 );

Parameters

$process_shortcodes bool
Indicates if notes should be processed for shortcodes.

$form Form Object
The form object.

$feed Feed Object
The feed object.

Examples
add_filter( 'gform_helpscout_process_note_shortcodes', 'process_note_sc', 10, 3 );
function process_note_sc( $process_shortcodes, $form, $feed ){
return false;
}

Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Help Scout version 1.5.
Source Code
This filter is located in GFHelpScout::process_feed() in gravityformshelpscout/class-gf-helpscout.php.

gform_helpscout_process_body_shortcodes

gform_helpscout_process_body_shortcodes

DescriptionUsageParametersExamples1. Enable for all forms2. Enable for a specific feed namePlacementSource CodeSince

Description
This filter can be used to enable shortcode processing in the Help Scout message body.
Usage
Applies to all forms:
add_filter( 'gform_helpscout_process_body_shortcodes', 'your_function_name', 10, 3 );

Applies to a specific form:
add_filter( 'gform_helpscout_process_body_shortcodes_4', 'your_function_name', 10, 3 );

Parameters

$process_shortcodes boolean
Is shortcode processing enabled? Default is false.

$form Form Object
The current form object.

$feed Feed Object
The current feed object.

Examples
1. Enable for all forms
This example shows how you can enable shortcode processing for all forms.
add_filter( 'gform_helpscout_process_body_shortcodes', '__return_true' );
2. Enable for a specific feed name
add_filter( 'gform_helpscout_process_body_shortcodes', function( $process_shortcodes, $form, $feed ) {

return rgars( $feed, 'meta/feed_name' ) == 'Help Scout Feed 1' ? true : $process_shortcodes;
}, 10, 3 );

Placement
This code should be placed in the functions.php file of your active theme.
Source Code
gf_apply_filters( 'gform_helpscout_process_body_shortcodes', $form['id'], false, $form, $feed )

This filter is located in GFHelpScout::process_feed() in class-gf-helpscout.php.
Since
This filter was added in Help Scout 1.1.1.

gform_{$SHORT_SLUG}_field_value

gform_{$SHORT_SLUG}_field_value

DescriptionShort Slug ValuesUsageParametersExamples1. ActiveCampaign – Use Choice Text Instead of Value2. ActiveCampaign – Replace Commas with Pipes3. Emma – Format Checkbox Field4. Help Scout – Change Value of Specific Field5. Zoho CRM – Format Date Field6. Zoho CRM – Format Checkbox FieldPlacementSinceSource Code

Description
This filter can be used to modify a value before it is sent to a third-party by one of the Add-On Framework based add-ons. If you want to filter the value for any add-on you can use gform_addon_field_value.
Short Slug Values
The Gravity Forms Add-On Slugs article lists the available short slugs to use with this hook:
The following add-ons listed in the slug article do not use the hook:

Gravity Forms CLI Add-On
Gravity Forms Debug Add-On
Gravity Forms Gutenberg Add-On

The Zapier Add-On implements its own version of the hook:

gform_zapier_field_value

Usage
The base filter which would run for all forms and all fields would be used like so:
1add_filter( 'gform_helpscout_field_value', 'your_function_name', 10, 4 );
To target a specific form append the form id to the hook name. (format: gform_{$SHORT_SLUG}_field_value_FORMID)
1add_filter( 'gform_helpscout_field_value_10', 'your_function_name', 10, 4 );
To target a specific field append both the form id and the field id to the hook name. (format: gform_{$SHORT_SLUG}_field_value_FORMID_FIELDID)
1add_filter( 'gform_helpscout_field_value_10_3', 'your_function_name', 10, 4 );

Parameters

$value string
The value to be modified.

$form Form Object
The form currently being processed.

$entry Entry Object
The entry currently being processed.

$field_id string
The ID of the field currently being processed.

Examples
1. ActiveCampaign – Use Choice Text Instead of Value
This example shows how you can replace the value of a choice based survey field with the choice text.
1234567891011add_filter( 'gform_activecampaign_field_value', 'gf_get_choice_text', 10, 4 );function gf_get_choice_text( $value, $form, $entry, $field_id ) {    gf_activecampaign()->log_debug( __METHOD__ . '(): running.' );    $field = GFAPI::get_field( $form, $field_id );     if ( is_object( $field ) && $field->type == 'survey' ) {        $value = $field->get_value_export( $entry, $field_id, true );        gf_activecampaign()->log_debug( __METHOD__ . '(): Value: ' . $value );    }    return $value;}
2. ActiveCampaign – Replace Commas with Pipes
This example shows how you can replace the commas used to separate checkbox or multi select choices with pipe characters.
123456789101112add_filter( 'gform_activecampaign_field_value', 'gf_replace_commas_with_pipes', 10, 4 );function gf_replace_commas_with_pipes( $value, $form, $entry, $field_id ) {    gf_activecampaign()->log_debug( __METHOD__ . '(): running.' );    $field = GFAPI::get_field( $form, $field_id );     if ( is_object( $field ) && ( $field->type == 'checkbox' || $field->type == 'multiselect' ) ) {        $value = str_replace( ', ', '||', $value );        gf_activecampaign()->log_debug( __METHOD__ . '(): Value: ' . $value );    }     return $value;}
3. Emma – Format Checkbox Field
This example shows how you can reformat the checkbox field value to be passed as an array instead of a string.
123456789add_filter( 'gform_emma_field_value', function ( $value, $form, $entry, $field_id ) {    $field = GFAPI::get_field( $form, $field_id );     if ( is_object( $field ) && $field->get_input_type() === 'checkbox' ) {        $value = explode( ', ', $value );    }     return $value;}, 10, 4 );
4. Help Scout – Change Value of Specific Field
This example shows how you can change the value of field 3 on form 10 before it is passed to Help Scout.
1234add_filter( 'gform_helpscout_field_value_10_3', function ( $value, $form, $entry, $field_id ) {     return 'your new value';}, 10, 4 );
5. Zoho CRM – Format Date Field
This example shows how you can reformat the entry date from yyyy-mm-dd to the format configured on the field.
123456789add_filter( 'gform_zohocrm_field_value', function ( $value, $form, $entry, $field_id ) {    $field = GFAPI::get_field( $form, $field_id );     if ( is_object( $field ) && $field->type == 'date' ) {        $value = GFCommon::date_display( $value, $field->dateFormat );    }     return $value;}, 10, 4 );
6. Zoho CRM – Format Checkbox Field
This example shows how you can reformat the checkbox field value to pass true or false instead of the choice. This snippet is not needed if you』re using version 1.8 of the add-on or newer.
1234567891011add_filter( 'gform_zohocrm_field_value', function ( $value, $form, $entry, $field_id ) {    gf_zohocrm()->log_debug( __METHOD__ . '(): Running...' );    $field = GFAPI::get_field( $form, $field_id );     if ( is_object( $field ) && $field->get_input_type() === 'checkbox' ) {        gf_zohocrm()->log_debug( __METHOD__ . '(): Checkbox value to true or false.' );        $value = $value ? 'true' : 'false';    }     return $value;}, 10, 4 );
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms 1.9.10.11.
Source Code
1234gf_apply_filters( "gform_{$slug}_field_value", array(    $form['id'],    $field_id), $field_value, $form, $entry, $field_id );
This filter is located in GFAddOn::maybe_override_field_value() in includes/addon/class-gf-addon.php.

gform_helpscout_enable_cc

gform_helpscout_enable_cc

DescriptionUsageParametersPlacementSource Code

Description
This filter is used to enable the display of the CC setting on the Help Scout feed.
Usage
add_filter( 'gform_helpscout_enable_cc', '__return_true' );

Parameters
This hook has no parameters.
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in class-gf-helpscout.php.