Gform advanced settings

(Created page with "__NOTOC__ == Description == Use this filter to create a new form setting under the Properties tab. Useful when implementing a new setting that applies to the form rather than a s...")
(Parameters)
Line 14: Line 14:
;$position
;$position
-
:([[integer]]) Specifies the position that the settings will be displayed. For a list of all available positions, search form_detail.php for "gform_properties_settings".
+
:([[integer]]) Specifies the position that the settings will be displayed. For a list of all available positions, search form_detail.php for "gform_advanced_settings".
;$form_id
;$form_id

Revision as of 20:45, 2 April 2012

Description

Use this filter to create a new form setting under the Properties tab. Useful when implementing a new setting that applies to the form rather than a specific field.

Usage

<?php
add_action("gform_advanced_settings", "my_form_advanced_settings", 10, 2);
?>

Parameters

$position
(integer) Specifies the position that the settings will be displayed. For a list of all available positions, search form_detail.php for "gform_advanced_settings".
$form_id
(integer) The ID of the current form.

Examples

This hook functions identically to the gform_field_advanced_settings hook. The only difference is the location of where the custom setting is output. Reference this example for usage.

Source Code

This filter is located in form_detail.php

Search the Documentation