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):
getColumnsreturns 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.