GF_Field_MultiSelect

GF_Field_MultiSelect

IntroductionSettings and PropertiesSettingsPropertiesSource Code

Introduction
The GF_Field_MultiSelect class extends the GF_Field class, also known as the Field Object. This class is responsible for determining how the Multi Select field is rendered when the form is displayed and how its value is handled during and after form submission.
Settings and Properties
Settings control what options are available to the admin user when configuring the field in the form editor. Gravity Forms includes many built-in settings such as Field Label, Field Description, Choices, Conditional Logic, etc. In addition to built-in settings, custom settings can also be developed. For more information on how to develop custom settings and how to associate settings to a field, visit the GF_Field page.
Properties contain the values specified by the settings and generally are part of the Field Object.
The properties may be retrieved by accessing the Field Object as follows:
12345//get the field$field = GFFormsModel::get_field( $form, 1 ); //get the admin label$admin_label = $field->adminLabel;
Settings
The following settings are available for the field:

admin_label_setting
Controls whether the 「Admin Field Label」 setting appears.

choices_setting
Determines whether the 「Choices」 setting displays. This section allows you to create different selections for the multi select and set associated values to each one. It also allows you to choose from a pre-defined set of data that may be used to create the items in the list. Without this section, the drop down selections are limited to 「First Choice」, 「Second Choice」 and 「Third Choice」 and may not be changed in the editor.

conditional_logic_field_setting
Controls whether the 「Enable Conditional Logic」 setting appears.

css_class_setting
Controls whether the 「Custom CSS Class」 setting displays. This allows a custom css to be used for the field.

description_setting
Controls whether the 「Description」 setting appears. This allows a description for the field to be displayed.

enable_enhanced_ui_setting
Determines whether the 「Enable enhanced user interface」 setting displays. This setting allows the Chosen jquery script to be used to add search capability to the multi select.

error_message_setting
Controls whether the 「Custom Validation Message」 setting which allows a custom message to be used appears.

label_setting
Controls whether the 「Field Label」 setting which allows the label to be changed appears.

prepopulate_field_setting
Controls whether the 「Allow field to be populated dynamically」 setting appears.

rules_setting
Controls whether the 「Rules」 settings section displays. The 「Required」 option shows when this is active.

size_setting
Controls whether the 「Field Size」 setting displays. This controls the size of the input field for fields to which it applies. The sizes are 「small」, 「medium」, and 「large」.

visibility_setting
Controls whether the 「Visibility」 setting displays. The controls whether the option of visibility being for 「Everyone」 or 「Admin Only」 can be set.

Properties
Below is a listing of the properties inherited from the parent class and ones specific to the field:

adminLabel string
The label to be used on admin pages instead of the label, useful for fields with long labels.

adminOnly boolean
Determines whether the field is visible to the user submitting the form, or only visible in the admin.

allowsPrepopulate boolean
Determines if the field values can be dynamically populated. Default is false.

choices array
An array containing the the individual properties for each item in the multi select.

text string
The text that is displayed

value string
The value that is used for the multi select when the form is submitted.

isSelected boolean
Indicates whether the item is selected
1234567891011121314151617$choices = array(           array(             'text'       => 'First Choice',             'value'      => 'one',             'isSelected' => false           ),           array(             'text'       => 'Second Choice',             'value'      => 'two',             'isSelected' => true           ),           array(             'text'       => 'Third Choice',             'value'      => 'three',             'isSelected' => false           ),         );

conditionalLogic array
An associative array containing the conditional logic rules. See the Conditional Logic Object for more details.

cssClass string
The custom CSS class or classes to be added to the input tag for the field.

description string
The field description.

descriptionPlacement string
The placement of the field description. The description may be placed 「above」 or 「below」 the field inputs. If the placement is not specified, then the description placement setting for the Form Layout is used.

enableChoiceValue boolean
Indicates whether the 「show values」 option within the 「Choices」 section of the editor is checked.

enableEnhancedUI boolean
Indicates whether the option to use the Chosen jquery script to add search capability to the drop down is checked.

errorMessage string
The custom error message to be displayed if the field fails validation.

formId integer
The form ID.

id integer
The field ID.

inputName string
The parameter name used when dynamically populating the field. The value must match the value of an item in the multi select.

isRequired boolean
Marking the field as required will prevent the form from being submitted if the user does not enter a value. Default is false.

label string
The field label that will be displayed on the form and on the admin pages.

size string
Controls the width of the input field. The choices are 「small」, 「medium」, and 「large」.

type string
The field type. It is set to 「multiselect」.

Source Code
The source code is located in includes/fields/class-gf-field-multiselect.php in the Gravity Forms folder of your sites plugins directory.

Obtaining Your Agile CRM API Key

Obtaining Your Agile CRM API Key

When using the Agile CRM Add-On for Gravity Forms, you will need to be able to authenticate with Agile CRM from your site. In this article, we will show you how to obtain your Agile CRM API key.

Log into your Agile CRM account.
From the top right of your main Agile CRM dashboard page, click on your name/icon, then click on Admin Settings.
From the left-hand menu, click on Developers & API. You will see your API key as well as your Javascript API key for tracking.

GF_Field_Shipping

GF_Field_Shipping

IntroductionSettings and PropertiesSettingsSource Code

Introduction
The GF_Field_Shipping class extends the GF_Field class, also known as the Field Object. This class is responsible for handling the Shipping field. Because Shipping fields are either a Single Method, Drop Down, or Radio Button, this class only adds some settings and sets the title for the field in the editor. The rendering of the Shipping field is handled by the class associated with its sub-type. The field 「type」 property will be set to 「shipping」 and the field 「inputType」 property will be 「singleshipping」, 「select」, or 「radio」.
For more details about rendering the Option field, check out the articles below:
Drop Down – GF_Field_Select class
Radio Buttons – GF_Field_Radio class
Single Method – GF_Field_Singleshipping class
Settings and Properties
Settings control what options are available to the admin user when configuring the field in the form editor. Gravity Forms includes many built-in settings such as Field Label, Field Description, Choices, Conditional Logic, etc. In addition to built-in settings, custom settings can also be developed. For more information on how to develop custom settings and how to associate settings to a field, visit the GF_Field page.
Properties contain the values specified by the settings and generally are part of the Field Object.
The properties may be retrieved by accessing the Field Object as follows:
//get the field
$field = GFFormsModel::get_field( $form, 1 );

//get the admin label
$admin_label = $field->adminLabel;

Settings
The following settings are available for the field:

admin_label_setting
Controls whether the 「Admin Field Label」 setting appears.

conditional_logic_field_setting
Controls whether the 「Enable Conditional Logic」 setting appears.

css_class_setting
Controls whether the 「Custom CSS Class」 setting displays. This allows a custom css to be used for the field.

description_setting
Controls whether the 「Description」 setting appears. This allows a description for the field to be displayed.

label_setting
Controls whether the 「Field Label」 setting which allows the label to be changed appears.

prepopulate_field_setting
Controls whether the 「Allow field to be populated dynamically」 setting appears.

shipping_field_type_setting
Controls whether the 「Field Type」 section displays. This allows the Shipping field to be set to the types: Single Method, Drop Down, Radio Button.

Source Code
The source code is located in includes/fields/class-gf-field-shipping.php in the Gravity Forms folder of your sites plugins directory.

GF_Field_Email

GF_Field_Email

IntroductionSettings and PropertiesSettingsPropertiesSource Code

Introduction
The GF_Field_Email class extends the GF_Field class, also known as the Field Object. This class is responsible for determining how the Email field is rendered when the form is displayed and how its value is handled during and after form submission.
Settings and Properties
Settings control what options are available to the admin user when configuring the field in the form editor. Gravity Forms includes many built-in settings such as Field Label, Field Description, Choices, Conditional Logic, etc. In addition to built-in settings, custom settings can also be developed. For more information on how to develop custom settings and how to associate settings to a field, visit the GF_Field page.
Properties contain the values specified by the settings and generally are part of the Field Object.
The properties may be retrieved by accessing the Field Object as follows:
12345//get the field$field = GFFormsModel::get_field( $form, 1 ); //get the admin label$admin_label = $field->adminLabel;
Settings
The following settings are available for the field:

admin_label_setting
Controls whether the 「Admin Field Label」 setting appears.

conditional_logic_field_setting
Controls whether the 「Enable Conditional Logic」 setting appears.

css_class_setting
Controls whether the 「Custom CSS Class」 setting displays. This allows a custom css to be used for the field.

default_value_setting
Controls whether the 「Default Values」 section displays. This allows a value to be set for the field.

description_setting
Controls whether the 「Description」 setting appears. This allows a description for the field to be displayed.

duplicate_setting
Controls whether the 「No Duplicates」 setting displays within the 「Rules」 section. This controls whether the same value may exist more than once in the database. The 「Rules」 setting must be active for this to display.

email_confirm_setting
Controls whether the 「Enable Email Confirmation」 section displays. This section allows a second email field to display for confirmation, and also allows custom labels for each field.

error_message_setting
Controls whether the 「Custom Validation Message」 setting which allows a custom message to be used appears.

label_setting
Controls whether the 「Field Label」 setting which allows the label to be changed appears.

placeholder_setting
Controls whether the 「Placeholders」 section appears. This allows placeholder text to display for the field.

prepopulate_field_setting
Controls whether the 「Allow field to be populated dynamically」 setting appears.

rules_setting
Controls whether the 「Rules」 settings section displays. The 「Required」 option shows when this is active.

size_setting
Controls whether the 「Field Size」 setting displays. This controls the size of the input field for fields to which it applies. The sizes are 「small」, 「medium」, and 「large」.

visibility_setting
Controls whether the 「Visibility」 setting displays. The controls whether the option of visibility being for 「Everyone」 or 「Admin Only」 can be set.

Properties
Below is a listing of the properties inherited from the parent class, and the properties unique to the field:

adminLabel string
The label to be used on admin pages instead of the label, useful for fields with long labels.

adminOnly boolean
Determines whether the field is visible to the user submitting the form, or only visible in the admin.

allowsPrepopulate boolean
Determines if the field values can be dynamically populated. Default is false.

conditionalLogic array
An associative array containing the conditional logic rules. See the Conditional Logic Object for more details.

cssClass string
The custom CSS class or classes to be added to the input tag for the field.

defaultValue string
The default value displayed in the field. This will be submitted with the form if not changed. If the 「Enable Email Confirmation」 option is checked, this property is not used. The 「defaultValue」 property that is part of the 「inputs」 array is used.

description string
The field description.

descriptionPlacement string
The placement of the field description. The description may be placed 「above」 or 「below」 the field inputs. If the placement is not specified, then the description placement setting for the Form Layout is used.

emailConfirmEnabled boolean
Determines whether the Confirm Email field is active.

errorMessage string
The custom error message to be displayed if the field fails validation.

formId integer
The form ID.

id integer
The field ID.

inputName string
The parameter name used when dynamically populating the field. The value will populate the Email field and the Confirm Email field if it is active.

inputs array
This array only exists when the Enable Email Confirmation (emailConfirmEnabled = true) option is checked. This array contains the individual properties for each element of the email and confirm email fields.

id integer
The id of the input field.

label string
The label for the input.

customLabel string
The custom label for the input. When set, this is used in place of the label.

placeholder string
Placeholder text to give the user a hint on how to fill out the field. This is not submitted with the form.

defaultValue string
The default value to be displayed in the input field.

12345678910111213141516$inputs = array(            array(              'id'           => '1',              'label'        => 'Email',              'customLabel'  => 'Email Address',              'placeholder'  => 'Enter your email address',              'defaultValue' => ''            ),            array(              'id'           => ' 1.2',              'label'        => 'Confirm Email',              'customLabel'  => 'Confirm Email Address',              'placeholder'  => 'Enter your email address again',              'defaultValue' => ''            )          );

isRequired boolean
Marking the field as required will prevent the form from being submitted if the user does not enter a value. Default is false.

label string
The field label that will be displayed on the form and on the admin pages.

noDuplicates boolean
Determines if the value entered by the user may already exist in the database.

placeholder string
Placeholder text to give the user a hint on how to fill out the field. This is not submitted with the form. If the 「Enable Email Confirmation」 option is checked, this property is not used. The 「placeholder」 property that is part of the 「inputs」 array is used.

size string
Controls the width of the input field. The choices are 「small」, 「medium」, and 「large」.

subLabelPlacement string
The placement of the labels for the email and confirm email fields. This setting controls both pieces, they cannot be set individually. They may be aligned above or below the inputs. If this property is not set, the 「Sub-Label Placement」 setting on the Form Settings->Form Layout page is used. If no setting is specified, the default is above inputs. This is only available when the Enable Email Confirmation setting is checked.

type string
The field type, which in this case is email.

Source Code
The source code is located in includes/fields/class-gf-field-email.php in the Gravity Forms folder of your sites plugins directory.

GF_Field_Price

GF_Field_Price

IntroductionSettings and PropertiesSettingsPropertiesSource Code

Introduction
The GF_Field_Price class extends the GF_Field class, also known as the Field Object. This class is responsible for determining how the Product field is rendered when it is a 「User Defined Price」 when the form is displayed and how its value is handled during and after form submission.
Settings and Properties
Settings control what options are available to the admin user when configuring the field in the form editor. Gravity Forms includes many built-in settings such as Field Label, Field Description, Choices, Conditional Logic, etc. In addition to built-in settings, custom settings can also be developed. For more information on how to develop custom settings and how to associate settings to a field, visit the GF_Field page.
Properties contain the values specified by the settings and generally are part of the Field Object.
The properties may be retrieved by accessing the Field Object as follows:
12345//get the field$field = GFFormsModel::get_field( $form, 1 ); //get the admin label$admin_label = $field->adminLabel;
Settings
The following settings are available for the field:

conditional_logic_field_setting
Controls whether the 「Enable Conditional Logic」 setting appears.

duplicate_setting
Controls whether the 「No Duplicates」 setting displays within the 「Rules」 section. This controls whether the same value may exist more than once in the database. The 「Rules」 setting must be active for this to display.

error_message_setting
Controls whether the 「Custom Validation Message」 setting which allows a custom message to be used appears.

label_setting
Controls whether the 「Field Label」 setting which allows the label to be changed appears.

placeholder_setting
Controls whether the 「Placeholders」 section appears. This allows placeholder text to display for the field.

rules_setting
Controls whether the 「Rules」 settings section displays. The 「Required」 option shows when this is active.

size_setting
Controls whether the 「Field Size」 setting displays. This controls the size of the input field for fields to which it applies. The sizes are 「small」, 「medium」, and 「large」.

Properties
Below is a listing of the properties inherited from the parent class and ones specific to the field.

adminLabel string
The label to be used on admin pages instead of the label, useful for fields with long labels.

allowsPrepopulate boolean
Determines if the field values can be dynamically populated. Default is false.

conditionalLogic array
An associative array containing the conditional logic rules. See the Conditional Logic Object for more details.

cssClass string
The custom CSS class or classes to be added to the input tag for the field.

description string
The field description.

descriptionPlacement string
The placement of the field description. The description may be placed 「above」 or 「below」 the field inputs. If the placement is not specified, then the description placement setting for the Form Layout is used.

errorMessage string
The custom error message to be displayed if the field fails validation.

formId integer
The form ID.

id integer
The field ID.

inputName string
The parameter name used when dynamically populating the field.

inputType string
The sub-type of a field. For instance, when the field is a Product field, the 「type」 is set to product and the 「inputType」 is set to price. When the field is created, the type is initially set using the 「type」 property. If 「inputType」 is not empty, then the 「inputType」 is used to create the field instead.

isRequired boolean
Marking the field as required will prevent the form from being submitted if the user does not enter a value. Default is false.

label string
The field label that will be displayed on the form and on the admin pages.

noDuplicates boolean
Determines if the value entered by the user may already exist in the database.

placeholder string
Placeholder text to give the user a hint on how to fill out the field. This is not submitted with the form.

size string
Controls the width of the input field. The choices are 「small」, 「medium」, and 「large」.

type string
The field type. The type is set to 「product」. The 「inputType」 is set to 「price」.

Source Code
The source code is located in includes/fields/class-gf-field-price.php in the Gravity Forms folder of your sites plugins directory.

GF_Field_CAPTCHA

GF_Field_CAPTCHA

IntroductionSettings and PropertiesSettingsPropertiesSource Code

Introduction
The GF_Field_CAPTCHA class extends the GF_Field class, also known as the Field Object. This class is responsible for determining how the CAPTCHA field is rendered when the form is displayed and how its value is handled during and after form submission.
Settings and Properties
Settings control what options are available to the admin user when configuring the field in the form editor. Gravity Forms includes many built-in settings such as Field Label, Field Description, Choices, Conditional Logic, etc. In addition to built-in settings, custom settings can also be developed. For more information on how to develop custom settings and how to associate settings to a field, visit the GF_Field page.
Properties contain the values specified by the settings and generally are part of the Field Object.
The properties may be retrieved by accessing the Field Object as follows:
12345//get the field$field = GFFormsModel::get_field( $form, 1 ); //get the captcha type$captcha_type = $field->captchaType;
Settings
The following settings are available for the field:

captcha_type_setting
Determines whether the 「Type」 section displays. If the plugin 「Really Simple Captcha」 is also installed, the type may be the default Google reCAPTCHA, Really Simple Captcha, or Math Challenge. The type drop down does not appear if this plugin is not available.

conditional_logic_field_setting
Controls whether the 「Enable Conditional Logic」 setting appears.

css_class_setting
Controls whether the 「Custom CSS Class」 setting displays. This allows a custom css to be used for the field.

description_setting
Controls whether the 「Description」 setting appears. This allows a description for the field to be displayed.

error_message_setting
Controls whether the 「Custom Validation Message」 setting which allows a custom message to be used appears.

label_setting
Controls whether the 「Field Label」 setting which allows the label to be changed appears.

Properties
Below is a listing of the properties inherited from the parent class, and the properties unique to the field:

adminLabel string
The label to be used on admin pages instead of the label, useful for fields with long labels.

captchaLanguage string
The language used when the captcha is displayed. This property is available when the captchaType is 「captcha」, the default. The possible values are the language codes used by WordPress.

captchaTheme string
The theme being used for the captcha. This property is available when the captchaType is 「captcha」, the default. The possibles values are 「light」 and 「dark」.

captchaType string
The captcha type being used. The default value will be 「captcha」 for Google』s reCAPTCHA. If the plugin 「Really Simple Captcha」 is installed, there are two other choices available, 「Really Simple Captcha」 with the value 「simple_captcha」 and 「Match Challenge」 with the value 「math」.

conditionalLogic array
An associative array containing the conditional logic rules. See the Conditional Logic Object for more details.

cssClass string
The custom CSS class or classes to be added to the input tag for the field.

description string
The field description.

descriptionPlacement string
The placement of the field description. The description may be placed 「above」 or 「below」 the field inputs. If the placement is not specified, then the description placement setting for the Form Layout is used.

errorMessage string
The custom error message to be displayed if the field fails validation.

formId integer
The form ID.

id integer
The field ID.

label string
The field label that will be displayed on the form and on the admin pages.

simpleCaptchaBackgroundColor string
The color of the background behind the text when the captcha is displayed. This property is available when the plugin Really Simple Captcha is installed and the captcha type is 「simple_captcha」 or 「math」. The color is represented using its HEX value.

simpleCaptchaFontColor string
The color of the font when the captcha is displayed. This property is available when the plugin Really Simple Captcha is installed and the captcha type is 「simple_captcha」 or 「math」. The color is represented using its HEX value.

simpleCaptchaSize string
The size of the captcha text that is displayed. This property is available when the plugin Really Simple Captcha is installed and the captcha type is 「simple_captcha」 or 「math」. The possible values are 「small」, 「medium」, 「large」.

type string
The field type, which in this case is captcha.

Source Code
The source code is located in includes/fields/class-gf-field-captcha.php in the Gravity Forms folder of your sites plugins directory.

GF_Field_Name

GF_Field_Name

IntroductionSettings and PropertiesSettingsPropertiesSource Code

Introduction
The GF_Field_Name class extends the GF_Field class, also known as the Field Object. This class is responsible for determining how the Name field is rendered when the form is displayed and how its value is handled during and after form submission.
Settings and Properties
Settings control what options are available to the admin user when configuring the field in the form editor. Gravity Forms includes many built-in settings such as Field Label, Field Description, Choices, Conditional Logic, etc. In addition to built-in settings, custom settings can also be developed. For more information on how to develop custom settings and how to associate settings to a field, visit the GF_Field page.
Properties contain the values specified by the settings and generally are part of the Field Object.
The properties may be retrieved by accessing the Field Object as follows:
//get the field
$field = GFFormsModel::get_field( $form, 1 );

//get the admin label
$admin_label = $field->adminLabel;

Settings
The following settings are available for the field:

admin_label_setting
Controls whether the 「Admin Field Label」 setting appears.

conditional_logic_field_setting
Controls whether the 「Enable Conditional Logic」 setting appears.

css_class_setting
Controls whether the 「Custom CSS Class」 setting displays. This allows a custom css to be used for the field.

default_input_values_setting
For complex fields like the name, time, address fields, this controls whether the 「Default Values」 section will appear which lets you set values for the individual components of the field. When it is not a complex field, the 「default_value_setting」 controls the display of this section.

description_setting
Controls whether the 「Description」 setting appears. This allows a description for the field to be displayed.

error_message_setting
Controls whether the 「Custom Validation Message」 setting which allows a custom message to be used appears.

input_placeholders_setting
For complex fields like the name, time, and address fields, this controls whether the 「Placeholders」 section will appear which lets you set placeholder text for the individual components of the field. When it is not a complex field, the 「placeholder_setting」 controls the display of this section.

label_setting
Controls whether the 「Field Label」 setting which allows the label to be changed appears.

name_setting
This setting has been deprecated and is currently in the code for backwards-compatibility only.

prepopulate_field_setting
Controls whether the 「Allow field to be populated dynamically」 setting appears.

rules_setting
Controls whether the 「Rules」 settings section displays. The 「Required」 option shows when this is active.

sub_label_placement_setting
If a field has sub-labels, controls whether the 「Sub-Label Placement」 setting appears.

visibility_setting
Controls whether the 「Visibility」 setting displays. The controls whether the option of visibility being for 「Everyone」 or 「Admin Only」 can be set.

Properties
Below is a listing of the properties inherited from the parent class, and the properties unique to the Name field.

adminLabel string
The label to be used on admin pages instead of the label, useful for fields with long labels.

adminOnly boolean
Determines whether the field is visible to the user submitting the form, or only visible in the admin.

allowsPrepopulate boolean
Determines if the field values can be dynamically populated. Default is false.

conditionalLogic array
An associative array containing the conditional logic rules. See the Conditional Logic Object for more details.

cssClass string
The custom CSS class or classes to be added to the input tag for the field.

description string
The field description.

descriptionPlacement string
The placement of the field description. The description may be placed 「above」 or 「below」 the field inputs. If the placement is not specified, then the description placement setting for the Form Layout is used.

errorMessage string
The custom error message to be displayed if the field fails validation.

formId integer
The form ID.

id integer
The field ID.

inputs array
An array containing the the individual properties for each element of the name field.

id integer
The id of the input field.

label string
The label for the input.

name string
The name of the parameter used for the input when dynamically populating the field.

customLabel string
The custom label for the input. When set, this is used in place of the label.

placeholder string
Placeholder text to give the user a hint on how to fill out the field. This is not submitted with the form.

defaultValue string
The default value to be displayed/chosen in the input field.

isHidden boolean
Controls whether the input is visible.

enableChoiceValue boolean
Indicates whether the choice has a value, not just the text. This is only available for the Prefix field.

inputType string
This is only available when it is the Prefix field and is set to 「radio」.

choices array
This array only exists when the Prefix field is used. It holds the prefix options that display in the drop down. These have been chosen in the admin.

text string
The text that is displayed in the Prefix drop down

value string
The value that is submitted with the form

isSelected boolean
Indicates which item in the drop down is selected
$inputs = array(
array(
'id' => '1.2',
'label' => 'Prefix',
'name' => 'param_prefix',
'customLabel' => '',
'placeholder' => 'Select a Prefix',
'defaultValue' => '',
'isHidden' => false,
'inputType' => 'radio',
'enableChoiceValue' => false,
'choices' => array(
array(
'text' => 'Mr.',
'value' => 'Mr.',
'isSelected' => false
),
array(
'text' => 'Ms.',
'value' => 'Ms.',
'isSelected' => true
)
)
),
array(
'id' => '1.3',
'label' => 'First',
'name' => 'param_first',
'customLabel' => 'First Name',
'placeholder' => '',
'defaultValue' => '',
'isHidden' => false
),
array(
'id' => '1.4',
'label' => 'Middle',
'name' => '',
'customLabel' => 'Middle Initial',
'placeholder' => 'Enter your middle initial',
'defaultValue' => '',
'isHidden' => false
),
array(
'id' => '1.6',
'label' => 'Last',
'name' => 'param_last',
'customLabel' => 'Last Name',
'placeholder' => '',
'defaultValue' => '',
'isHidden' => false
),
array(
'id' => '1.8',
'label' => 'Suffix',
'name' => '',
'customLabel' => '',
'placeholder' => '',
'defaultValue' => '',
'isHidden' => true
),
);

isRequired boolean
Marking the field as required will prevent the form from being submitted if the user does not enter a value. Default is false.

label string
The field label that will be displayed on the form and on the admin pages.

nameFormat string
The format of the name field. Originally, the name field could be a 「normal」 format with just First and Last being the fields displayed or an 「extended」 format which included prefix and suffix fields, or a 「simple」 format which just had one input field. These are legacy formats which are no longer used when adding a Name field to a form. The Name field was modified in a way which allows each of the components of the normal and extended formats to be able to be turned on or off. The nameFormat is now only 「advanced」. Name fields in the previous formats are automatically upgraded to the new type if the form field is modified in the admin. The code is backwards-compatible and will continue to handle the 「normal」, 「extended」, 「simple」 formats for fields which have not yet been upgraded.

size string
Controls the width of the input field. The choices are 「small」, 「medium」, and 「large」.

subLabelPlacement string
The placement of the labels for the fields (prefix, first, last, suffix, etc.) within the name group. This setting controls all of the name pieces, they cannot be set individually. They may be aligned above or below the inputs. If this property is not set, the 「Sub-Label Placement」 setting on the Form Settings->Form Layout page is used. If no setting is specified, the default is above inputs.

type string
The field type, which in this case is name.

Source Code
The source code is located in includes/fields/class-gf-field-name.php in the Gravity Forms folder of your sites plugins directory.

Obtaining Your Capsule CRM API Key

Obtaining Your Capsule CRM API Key

To use the Capsule CRM Add-On, you will need to first obtain your Capsule CRM API key. In this article, we will show you exactly how to find it.

Log into your Capsule CRM account.
Click on your name at the top right corner and then on My Preferences.
From the left side menu, click API Authentication Tokens.
Under Personal Access Tokens, click the Generate new API token button.

Give the token a Description, and check the boxes as applicable.

Click the Save new Token button.

Now you can copy the token to use in your Gravity Forms Capsule CRM settings.
If you need further help to get your API key, we recommend you contact Capsule CRM support.

GF_Field_SingleProduct

GF_Field_SingleProduct

IntroductionSettings and PropertiesSettingsPropertiesSource Code

Introduction
The GF_Field_SingleProduct class extends the GF_Field class, also known as the Field Object. This class is responsible for determining how the Single Product field is rendered when the form is displayed and how its value is handled during and after form submission. Because this is a product field, the 「type」 property will be set to 「product」 and the 「inputType」 property to 「singleproduct」.
Settings and Properties
Settings control what options are available to the admin user when configuring the field in the form editor. Gravity Forms includes many built-in settings such as Field Label, Field Description, Choices, Conditional Logic, etc. In addition to built-in settings, custom settings can also be developed. For more information on how to develop custom settings and how to associate settings to a field, visit the GF_Field page.
Properties contain the values specified by the settings and generally are part of the Field Object.
The properties may be retrieved by accessing the Field Object as follows:
//get the field
$field = GFFormsModel::get_field( $form, 1 );

//get the admin label
$admin_label = $field->adminLabel;

Settings
The following settings are available for the field:

base_price_setting
Determines whether the 「Price」 section displays. This allows a base price to be specified for the product.

conditional_logic_field_setting
Controls whether the 「Enable Conditional Logic」 setting appears.

disable_quantity_setting
Determines whether the 「Disable quantity field」 checkbox appears. This allows the quantity to be removed from the field. A default value of 1 will be used, unless a separate Quantity field is added.

duplicate_setting
Controls whether the 「No Duplicates」 setting displays within the 「Rules」 section. This controls whether the same value may exist more than once in the database. The 「Rules」 setting must be active for this to display.

error_message_setting
Controls whether the 「Custom Validation Message」 setting which allows a custom message to be used appears.

label_setting
Controls whether the 「Field Label」 setting which allows the label to be changed appears.

rules_setting
Controls whether the 「Rules」 settings section displays. The 「Required」 option shows when this is active.

Properties
Below is a listing of the properties inherited from the parent class, and the properties unique to the field.

adminLabel string
The label to be used on admin pages instead of the label, useful for fields with long labels.

allowsPrepopulate boolean
Determines if the field values can be dynamically populated. Default is false.

basePrice string
The price of the product. The value includes the formatting characters.

conditionalLogic array
An associative array containing the conditional logic rules. See the Conditional Logic Object for more details.

cssClass string
The custom CSS class or classes to be added to the input tag for the field.

description string
The field description.

descriptionPlacement string
The placement of the field description. The description may be placed 「above」 or 「below」 the field inputs. If the placement is not specified, then the description placement setting for the Form Layout is used.

disableQuantity boolean
Indicates whether the Quantity field is active.

errorMessage string
The custom error message to be displayed if the field fails validation.

formId integer
The form ID.

id integer
The field ID.

inputs array
An array containing the the individual properties for each element of the single product field.

id integer
The id of the input field.

label string
The label for the input.

name string
The name of the parameter used for the input when dynamically populating the field.

An example of the array output is as follows:
$inputs = array(
array(
'id' => '1.1',
'label' => 'Product Name',
'name' => 'param_product'
),
array(
'id' => '1.2',
'label' => 'Price',
'name' => 'param_price'
),
array(
'id' => '1.3',
'label' => 'Quantity',
'name' => 'param_qty'
),
)

inputType string
Specifies the type of Product field being used. For instance, when the field is for a product, the 「type」 is set to product and the 「inputType」 is set to singleproduct. When the field is created, the type is initially set using the 「type」 property. If 「inputType」 is not empty, then the 「inputType」 is used to create the field instead.

isRequired boolean
Marking the field as required will prevent the form from being submitted if the user does not enter a value. Default is false.

label string
The field label that will be displayed on the form and on the admin pages.

noDuplicates boolean
Determines if the value entered by the user may already exist in the database.

type string
The field type, which in this case is product. The specific type of product field is in the 「inputType」 property.

Source Code
The source code is located in includes/fields/class-gf-field-singleproduct.php in the Gravity Forms folder of your sites plugins directory.

GF_Field_FileUpload

GF_Field_FileUpload

IntroductionSettings and PropertiesSettingsPropertiesSource Code

Introduction
The GF_Field_FileUpload class extends the GF_Field class, also known as the Field Object. This class is responsible for determining how the File Upload field is rendered when the form is displayed and how its value is handled during and after form submission.
Settings and Properties
Settings control what options are available to the admin user when configuring the field in the form editor. Gravity Forms includes many built-in settings such as Field Label, Field Description, Choices, Conditional Logic, etc. In addition to built-in settings, custom settings can also be developed. For more information on how to develop custom settings and how to associate settings to a field, visit the GF_Field page.
Properties contain the values specified by the settings and generally are part of the Field Object.
The properties may be retrieved by accessing the Field Object as follows:
12345//get the field$field = GFFormsModel::get_field( $form, 1 ); //get the allowed extensions$extensions = $field->allowedExtensions;
Settings
The following settings are available for the field:

admin_label_setting
Controls whether the 「Admin Field Label」 setting appears.

conditional_logic_field_setting
Controls whether the 「Enable Conditional Logic」 setting appears.

css_class_setting
Controls whether the 「Custom CSS Class」 setting displays. This allows a custom css to be used for the field.

description_setting
Controls whether the 「Description」 setting appears. This allows a description for the field to be displayed.

error_message_setting
Controls whether the 「Custom Validation Message」 setting which allows a custom message to be used appears.

file_extensions_setting
Determines whether the 「Allowed file extensions」 section displays. This section allows the user to enter a comma-delimited list of file extensions which may be uploaded.

file_size_setting
Determines whether the 「Maximum File Size」 section displays. This section sets the allowed size for each file uploaded.

label_setting
Controls whether the 「Field Label」 setting which allows the label to be changed appears.

multiple_files_setting
Determines whether the 「Enable Multi-File Upload」 section displays. This section allows the interface to be changed to allow multiple files to be uploaded, instead of a single upload. This section also includes the ability to set a limit on how many files may be uploaded.

rules_setting
Controls whether the 「Rules」 settings section displays. The 「Required」 option shows when this is active.

visibility_setting
Controls whether the 「Visibility」 setting displays. The controls whether the option of visibility being for 「Everyone」 or 「Admin Only」 can be set.

Properties
Below is a listing of the properties inherited from the parent class, and the properties unique to the field.

adminLabel string
The label to be used on admin pages instead of the label, useful for fields with long labels.

adminOnly boolean
Determines whether the field is visible to the user submitting the form, or only visible in the admin.

allowedExtensions string
A comma-delimited list of the file extensions which may be uploaded.

conditionalLogic array
An associative array containing the conditional logic rules. See the Conditional Logic Object for more details.

cssClass string
The custom CSS class or classes to be added to the input tag for the field.

description string
The field description.

descriptionPlacement string
The placement of the field description. The description may be placed 「above」 or 「below」 the field inputs. If the placement is not specified, then the description placement setting for the Form Layout is used.

errorMessage string
The custom error message to be displayed if the field fails validation.

formId integer
The form ID.

id integer
The field ID.

isRequired boolean
Marking the field as required will prevent the form from being submitted if the user does not enter a value. Default is false.

label string
The field label that will be displayed on the form and on the admin pages.

maxFiles string
When the field is set to allow multiple files to be uploaded, this property is available to set a limit on how many may be uploaded.

maxFileSize integer
The maximum size an uploaded file may be.

multipleFiles boolean
Indicates whether multiple files may be uploaded and changes the interface accordingly.

type string
The field type, which in this case is fileupload.

Source Code
The source code is located in includes/fields/class-gf-field-fileupload.php in the Gravity Forms folder of your sites plugins directory.