Note: This filter was removed in Gravity Forms 3.2.0. The Repeater field is now always available in the Form Editor, so this filter is no longer needed. Refer to the Repeater Field article for more information.
Description
The gform_enable_repeater_field_button filter allows you to enable the repeater field type in the form editor. By default, the repeater field is disabled.
Usage
The following would apply to all forms.
add_filter( 'gform_enable_repeater_field_button', 'your_function_name' );
| Parameter | Type | Description |
|---|---|---|
| $is_enabled | boolean | Whether the repeater field is enabled. Defaults to false. |
Example
Enable the Repeater Field
add_filter( 'gform_enable_repeater_field_button', 'enable_repeater', 11 );
function enable_repeater( $is_enabled ) {
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 form_detail.php
Since
The filter was added in Gravity Forms 3.0 and removed in Gravity Forms 3.2.0.