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 names
  • getCells returns 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.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us