FormApproval Widget

Use this widget on the form to approve or reject.

Last published at: August 13th, 2023

Description:

Form approval buttons should be used when a form is routed for approval. This also submits the form and completes the task. Form is routed as a task through the workflow process using the RouteForm step. Complete/Reject buttons can be configured using the property page for each button.

Inputs

  • ID/Name - Name of widget generated by FlowWright (read-only field)
 

 

Design:

 

 

Example: 

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

  • Create a new form definition called “FormApprovalDef” 
  • Select the Open Designer checkbox and click the “Create” button
  • Drag a “FormApproval” widget to the canvas
  • Double-click on the “Approve” button to configure the “Settings” properties. Select the button type from the drop down list with “Success” as the default setting. The control name is configured by the application. Provide the button label. Click on the check box to hide and required during the run time. Provide the redirect URL after form approve.  
  • Double-click on the “Approve” button to configure the “Styling” properties. Provide the style script. Select the class from the drop down list if previously uploaded.  
  • Double-click on the “Approve” button to configure the “Others” properties. Provide the tool tip text.
  • Double-click on the “Reject” button to configure the “Settings” properties. Select the button type from the drop down list with “Danger” as the default setting. The control name is configured by the application. Provide the button label. Click on the check box to hide and required during the run time. Provide the redirect URL after form reject.  
  • Double-click on the “Reject” button to configure the “Styling” properties. Provide the style script. Select the class from the drop down list if previously uploaded.  
  • Double-click on the “Reject” button to configure the “Others” properties. Provide the tool tip text.
  • Create a process definition. Configure a route form step to use the above form definition and route the form to an user. 
  • Generate and execute a new process instance. The form is routed as a task to the user. By selecting the task the form is rendered with the buttons as configured. On form approval or rejection, the page is redirected to the page as configured.