bookmark_bordergform_form_args

Description

Provides the ability to modify the options used to display the form.

Usage

add_filter( 'gform_form_args', 'your_function_name', 10, 1 );

Parameters

_autolink_array An array of Form Arguments when adding it to a page/post (Like the ID, Title, AJAX or not, etc)

Possible values in array:

  • form_id – the form id
  • display_title – true/false
  • display_description – true/false
  • force_display – true/false
  • field_values – An array of dynamic population parameter keys with their corresponding values to be populated.
  • ajax – true/false
  • tabindex – number

Examples

add_filter( 'gform_form_args', 'setup_form_args', 10, 1 );

function setup_form_args( $args ) {
	$form_args = array(
		'display_title' => false,
		'display_description' => true,
	);
	return $form_args;
}

Placement

This code should be placed in the functions.php file of your active theme.

Since

This filter was added in Gravity Forms 1.9.

Source Code

This filter is located in GFFormDisplay::get_form() in form_display.php