Generating a Data Form via Structure
  • 14 Feb 2022
  • 1 Minute to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Generating a Data Form via Structure

  • Dark
    Light

Article summary

Overview

A Form can be auto-generated and include fields from a Data Structure.

Example

In this example, a Form will be created based on the fields in a Data Structure. A Flow will display the Form for user input. 

  1. In the Designer Folder, click CREATE DATATYPES/INTEGRATION and select Flow Structure.
  2. In the Flow Structure window, enter a name in the Structure Type Name field and create two String [Text] data fields (FirstName, LastName) and one Int32 (Number) data field(Age). Then, click SAVE.
  3. Right-click on the Flow Structure and click Generate Data Form.
  4. On the Create Form window, under Layout Style, select GridLabelLeft.
  5. For the Cancel Outcome Name field, enter "Cancel". Then, click GENERATE DATA FORM.
  6. In the Designer Project, click CREATE FLOW from the bottom action panel and select Flow
  7. Name the Flow [Generating Data Form via Structure Flow] and click CREATE.
  8. In the Flow Designer, add a Show Form step to the Done path of the Start step. 
  9. Click Pick or Create Form and pick the existing Form that was created (PersonForm).
  10. With the step selected, click the Unknown input mapping under the Inputs category and select Build Data.
  11. Connect the Ok path and Cancel path to the End step. Click Save to save changes to the Flow.

Debug

  1. On the top action bar, click Debug. Then, the Flow will run successfully.

When the Debugger runs, the auto-generated Form will appear for user input.


Was this article helpful?