Clear Form Field Values

Use this step in the workflow to clear form field values.

Last published at: November 20th, 2026

Description:

The ClearFormInstValues workflow step clears the Form and SubForm of all field values (or selected values) available in the form instance provided by the user. 

The form field values are cleared from the following:

  • Form Datatable
  • Subform Datatable
  • Gridview data
  • File Attachments
  • Signatures
  • Barcode
  • Form Comments

 

Inputs

  • formInstanceID - The variable/global that holds the form instance ID.
  • clearFormFields - Configure clear options (all fields, subForm fields, selected fields)
  • formID - Select Form Definition
 

 

Returns

  • True - The True return path can be connected to the next workflow activity after the ClearFormInstValues operation returns True.
  • False - The False return path can be used for an alternative workflow path or error-handling logic when the operation returns False.
 

 

Usage:

The ClearFormInstValues step is typically placed after the RouteForm workflow step and generally used with a decision.

A typical workflow pattern is:

 

Example:

Let’s build and execute the “clsFormInstValuesDef” example:

  • Create a new Process Definition named “clsFormInstValuesDef” and open it in designer mode. 
  • Drag the “RouteForm, clsFormInstValues, PlaceHolder” steps to the canvas.
  • Connect the dots between the “Start” and other steps as shown in the usage image above. 
  • Select the line between the steps to configure the “Connection Properties”. The default property values are “None, True, False, Error, and Evaluate”. Depending on the step’s purpose, additional values are available for configuration. 
  • Define a few variables or globals to store the values. 
  • Click the "RouteForm" step to configure its "Required" properties. Enter a name and a task description for the step. Select the “Optional” tab. Select the users to route the Form. Click the Save button. Note: Click the "AI Predict" button to have the Copilot add new process steps that match your process description. 
  • Click the "clsFormInstValues" step to configure its "Optional" properties. Provide a name. Provide a variable or global variable reference that holds the Form Instance ID. Select the Form Definition from the drop-down list whose form instance field values are to be cleared. Click the button to configure the “Clear Options”. Click the Save button. 

 

  • Click the button to configure the “Clear Options”. Select any one of the options. 
    • All Fields: Clears all form fields, including sub-form fields.
    • Sub Forms: Clears all form fields from the selected sub-forms.
    • Selected Fields: Clears the selected form fields. 

 

  • Select the “Sub Forms” option. Choose the sub-forms from the drop-down list. Note: The availability of sub-forms depends on the parent form’s configuration. Click the “Save” button.   

 

  • Select the “Selected Fields” option. Choose the form fields from the drop-down list. Note: All form fields, including those in the sub-form, are listed. Click the “Save” button.   

 

  • The “Logging” configuration is necessary for documentation and also measures workflow progress and percent complete. Configure the step state and percent fields individually, as shown below. Configure the “Logging” using the following properties.

 

  • Save the process definition, create a new instance, and execute it. The process instance is rendered on a new page as shown below.  The workflow waits at the Form task step. 

 

  • The Form task requires a manual completion. 

 

  • Access the Form task and reject it with some field values. 

 

  • The process instance completes the workflow.

 

  • Render the Form instance to see the field values cleared. 

 

Definition Sample:

You may download and extract the sample process definition, form definition, and document templates, then import them by drag-and-drop into the FlowWright Process Definition (XML file) page.

After importing a sample, verify and complete any missing configuration, including:

  • Variable/Global to store the value.
  • Any workflow Variable references.
  • The workflow activity preceding ClearFormFieldValues.
  • Downstream True workflow path.
  • Downstream False workflow path.
  • Any Decision or reporting activities that consume the stored duration.
  • Environment-specific settings.
  • Logging configuration.

After verifying the configuration, save the Process Definition before execution.

Click here to download the sample file.