GF_Field_HTML

The GF_Field_HTML class extends the GF_Field class, also known as the Field Object. This class is responsible for determining how the HTML 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 html content $content = $field->content;

Settings

The following settings are available for the field:

Properties

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

$entry Value

The HTML field is a display only field so does not save a value in the entry.

Hooks

There are no hooks located in GF_Field_HTML.

Source Code

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

Last modified: February 7, 2019

© Copyright 2008 - 2024 Rocketgenius, Inc