Form Helper
Include forms to gather user input on Embed (white label integration portal) for use in Flows
Last updated
Include forms to gather user input on Embed (white label integration portal) for use in Flows
Last updated
The Form Helper can be used together with the Embed Feature (white label integration portal) to receive custom user input from your users which can then be used in the Embed Flow.
The Form Helper has only one default action - Create Form. It has only one field, which is used to create the form using the UI Form Schema that is also used to create the input forms for actions within Locoia.
There you can specify all attributes of the field seen by your users - such as if a field is required, what kind of field it is, etc. Learn how to get started with creating UI Form Schemas on this page:
The Form Helper can accept various types of input: select, switch, and nested objects. Use regular Jinja referencing to reference user input within Embed flows. This starts with the Form Helper's reference, followed by referencing the individual fields by their unique reference. Nested properties can also be used.
Example based on the UI Form Schema below:{{ form.contact_info.company }}
{{ form.contact_info.email }}
{{ form.accept_terms }}
A part of the flow could involve reading an export file from an FTP server, for example. The challenge is that each customer's folder name may vary slightly. Thus, the user needs to specify their folder name in the embed setup.
The UI Form Schema in the form helper could in this case be:
To reference this field later in the Flow, you need to consider the references assigned to the Form Helper itself—in this case, ftp_user_details:
So, you can read the name of the folder entered by user and use it in the next step (here FTP helper step) ftp_user_details.folder_name
During the Flow setup, your users will now see your form and can use it to fill in their individual details (or in this case have to, as you marked the field as required):
The Form Helper Step will always be shown as the last step in the Flow setup.
That's it! Now all the created Embed Flows include the user input of your respective end user.