Fields in GravityExport
As weโre sure you know, a form is made up of fields. Gravity Forms has loads of fields by default, and you can actually create your own fields. We try to make sure that every field is supported, and most fields should not be a problem, even when it is a custom field.
Transformer #
To give the users as much flexibility as possible, the plugin uses a Transformer ย to map a Field Renderer to a field. The Transformer ย class has one function: transform(GF_Field $field): FieldInterface , and itโs sole purpose is to take a Gravity Forms Field Instance (GF_Field) and map it onto a specific Field ย renderer. If it has a specific Field ย mapped, the transformer will return that Field . Otherwise it will return a BaseField ย or a SeparableField ย based on the type.
Purpose of a Field #
Every Field class has a specific purpose. But the main purpose is to return columns and cells. It even has two functions to do so, called (youโve guessed it):
getColumnsย returns an array of all column namesgetCellsreturns an array of all the values for those columns.
The array count should be the same for both functions.
A list of fields #
Lets dive into the available fields.