Description
The gform_gfcf_disable_payment_field_position_notice filter allows developers to disable the payment field position notice that appears in Conversational Forms. By default, this notice alerts users to payment field positioning requirements.
Usage
To disable the payment field position notice across all Conversational Forms:
add_filter( 'gform_gfcf_disable_payment_field_position_notice', '__return_true' );
To disable the notice only on a specific form, replace {FORM_ID} with your form’s ID:
add_filter( 'gform_gfcf_disable_payment_field_position_notice_{FORM_ID}', '__return_true' );
Parameters
| Parameter | Type | Description |
|---|---|---|
| $disable | bool | Whether to disable the notice. Default is false (notice is shown). |
| $form | array | The form object containing all form properties and settings. |
Examples
Disable the notice for All Forms.
add_filter( 'gform_gfcf_disable_payment_field_position_notice', '__return_true' );
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Source Code
This filter is located in class-gf-conversational-forms.php in the Gravity Forms Conversational Forms add-on.
Since
This filter was added in Conversational Forms version 1.7.1.