Skip to main content

Adding Custom Fields to Your Gates

Learn how to add, configure, and manage custom fields to capture data that is specific to a single gate or use case

Updated over 8 months ago

Custom fields allow you to capture data that may not be covered by your standard fields. Using this feature gate authors can add and configure additional fields into their gates and store the response data in generic fields in the receiving data platform.

This guide explains how to work with custom fields in Formulayt for both regular users and administrators.

Understanding custom fields

Custom fields are enabled at the Form Type level by the Formulayt administrator. They will also determined how many custom fields can be created, where they will appear in the form and where they map to in the receiving data platform.

Adding custom fields

Custom fields provide a useful solution for one-off data capture requirements. If you find yourself repeatedly using the same custom field, work with your administrator to add it to your form templates as a standard field.

How to add a custom field to your form

Follow these steps to add a custom field:

  1. When editing or creating a gate

  2. Open the form tab

  3. Locate the Custom fields options (typically at the bottom)

  4. If your selected Form Type supports Custom Fields you should see something similar to this...

Configuration options

When configuring a custom field, you have access to these options:

  • Field type - Choose from Text, Long text, Picklist, Checkbox, Radio input group or Hidden field

  • Question text - Define the label or field prompt displayed to users

  • Field options - Configure dropdown values (for picklist fields)

  • Field value - Set predetermined values for hidden fields

  • This field is required - Toggle whether the field is mandatory

Picklist configuration

For dropdown fields, enter each option on a new line. To separate display text from values, use the pipe separator:

value|displaytext 
value|displaytext
value|displaytext

Administrator settings

For administrators configuring custom field availability:

  1. Navigate to Setup / Fields

  2. Create a new field

  3. Select "Custom fields" from the Field Type dropdown

  4. Select the number custom fields that gate authors can create

Note: Only one Custom fields field can be created with Formulayt

Field naming templates

Each custom field creates two data points: one for the question text and one for the user's response. The {n} placeholder in your naming templates determines the field number. You can configure the naming convention to your needs, but you must include {n} within your convention.

Example using templates:

Label template: $customField{n}Label 
Value template: $customField{n}Value

This creates:

$customField1Label $customField1Value 
$customField2Label $customField2Value
$customField3Label $customField3Value

Once you have determined your custom fields naming convention you must ensure that your receiving data platform has the fields setup ready to receive the data. In the example above, 6 fields should be created in order to receive the questions and answer from any custom fields created in gates.

Did this answer your question?