gform_list_field_parameter_delimiter

Description

Allow modification of the delimiter used to parse List field URL parameters.

Usage

The following would apply to all forms.

add_filter( 'gform_list_field_parameter_delimiter', 'your_function_name', 10, 4 );

Parameters

  • $delimiter string

    Defaults to ‘|’.

  • $field Field Object

    GF_Field object for the current field.

  • $name string

    Name of the current dynamic population parameter.

  • $field_values array

    Array of values provided for pre-population into the form.

Examples

add_filter( 'gform_list_field_parameter_delimiter', function( $delimiter, $field, $name, $field_values ) {
return '||';
}, 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 version 1.9.18.

Source Code

This filter is located in GFFormsModel::get_parameter_value() in forms_model.php.