Overview
When building a form in the FastField Form Builder, you may find it helpful to organize your form fields into pages and sections -- especially if your form is complex. Having a well-structured form will make it easier for you to arrange and edit your form in the Form Builder, while providing a smoother experience for your form users.
This article will discuss the main components of a form (pages, sections, and fields), as well as some helpful information about field keys and field values, which are useful for more advanced functions.
Components of a Form
Every form created in FastField is composed of three primary components: pages, sections, and fields. These components assist in organizing a form, especially as it increases in size.
- Pages: Use pages in the Form Builder to help organize your form. Your form can be all on one page, but for complex forms, it's best to group and arrange related fields into pages. Pages only affect the organization and layout within the Form Builder and will not be reflected in the app to form users.
-
Sections: A section is used to organize fields within a page into logical groups on your form. Sections will be visible on the form to users in the app by means of a section name and description.
- For example, if you were building a form that collected an individual's address, you might set up a section named Address and add Street Name, City, State, and Zip fields to that section.
- Fields: Fields are components of a form that the user fills out. Each field type allows you to capture a specific type of data. Field types range from standard textual data to multi-media objects, including photos, video, and audio.
Field Keys
What is a Field Key?
Field keys are unique identifiers for each field within a form. Since field keys must be unique, they cannot be duplicated within a single form. When a field is added to a form there will always be a default field key assigned.
For example, this Text field defaults to alpha_5 or $alpha_5$.
Referencing Field Values in Rules
To access a field value in a rule condition, wrap the field key with the $ character.
For example, for a field with a field key of first_name, you would use the following syntax to check if the first name is John.
if ($first_name$ == 'John')
Help & Support
Learn more about field types, setting up your first form, or arranging sections and fields, and feel free to reach out if you have any questions!