setFormFieldValues Step

Use this step to set the Form field values.

Last published at: August 11th, 2025

Description:

This step is used to set the Form field values.

 

Inputs

  • formInstanceID – Variable that holds the form instance ID
  • fieldMappings – Mapping of values to fields 
  • formID -- Select Form Definition 
 

 

Returns

  • True – step executed successfully
  • False – step failed to execute 
 

 

Usage:

 

 

Example:

Let’s build and execute the “setFormFieldValuesDef” example.          

  • Create a new Form Definition called “setFormFieldValuesDef.” The design layout is shown below.

 

  • Create a new process definition called “setFormFieldValuesDef” and open the definition in designer mode.
  • Drag the “instantiateForm, setFormfieldvalues, and routeForm” steps to the canvas. 
  • Connect the dots between the “Start” and the other steps, as shown above.
  • Click the “instantiateForm” step to configure its “Required” properties. Provide a name for the step. Select the Form Definition from the drop-down list. Provide a variable or a global reference to hold the Form Instance ID. Click the Save button. Note: Click the "AI Predict" button for the Copilot to add new process steps that match your process description. 

 

  • Click the “setFormFieldValues” step to configure its “Required” properties. Provide the variable or global reference that holds the Form Instance ID. Select the Form Definition from the drop-down list. Click the Save button. Note: Click the "AI Predict" button for the Copilot to add new process steps that match your process description. 

 

  • Click the button to map the Form fields with values. Click the Add Row (+) button to insert an empty row. Select the Form field from the drop-down list. Provide the field value in the text box. Click the Save button. You may initialize multiple form fields by adding more rows. 

 

  • Click the “routeForm” step to configure its “Required” properties. Provide the step name and description. Select the Form Definition from the drop-down list. Provide the variable or global reference that holds the Form Instance ID. Click the Save button. Configure the “RouteTo” field in the Advanced tab.  Click the Save button. Note: Click the "AI Predict" button for the Copilot to add new process steps that match your process description. 

 

  • Save the process definition, create a new instance, and then execute it. Render the process instance. The process is sleeping at the RouteForm step as below. 

 

  • Navigate to the Tasks page. Select the Form task to render on the new page. 

 

  • The Form is rendered with the values initialized by the “setFormFieldValues” step during process execution, as shown below. 

 

 

Definition Sample:

You may download the sample definition(s) from the link here and later import them (drag-and-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page. 

Note: Please verify and complete the process steps for any missing configurations, such as file path references and database connections, after import. Then, save the definition to confirm the changes. 

Click here to download the sample Process file.

Click here to download the sample Form file.