bookmark_borderForm Object

Introduction

The Form Object is the main object in Gravity Forms. It contains all properties of a particular form (i.e. form title, fields, notification, scheduling, etc…). This object is available to most of the Gravity Forms hooks.

It is formatted as an associative array (i.e. $form[‘title’] retrieves the form title).

Usage

$form['title'] //returns the form title
$form['fields'][0]['type']; //returns the type of the first field of the form

Template to be used when creating the post content. Field variables (i.e. {Name:3} ) can be added to the template to insert user submitted values into the post content. Only applicable when postContentTemplateEnabled is true

Template to be used when creating the post title. Field variables (i.e. {Name:3} ) can be added to the template to insert user submitted values into the post title. Only applicable when postTitleTemplateEnabled is true