Introduction
Used to add additional options to the field appearance settings.
Note: Be sure to check for the first parameter in your function. This action fires multiple times.
Usage
add_action( 'gform_field_appearance_settings', 'my_function', 10, 2 );
Parameters
- $position integer
The position where the action is currently firing. Each time the action is called, it will return a different position. For a list of all available positions, search form_detail.php for “gform_field_appearance_settings” or review the Appearance Field Settings article.
-
$form_id integer
The ID of the form that the action is being run on.
Examples
function my_function($placement, $form_id) { if( $placement == 50 ) { //Insert new appearance field HTML here } } add_action( 'gform_field_appearance_settings', 'my_function', 10, 2 );
Source Code
This action hook is located in form_detail.php.