GETTING STARTED
Process Assistants Overview
Concepts and Terminology
Quick Start Guide
Exploring the Process Apps Store
Building Process Apps from Scratch
What's New
Current Version

CONCEPTS
Flow Builder
Triggers
Logic
Introduction
Split
Merge
GoTo
End
Tasks
Introduction
Human Task
Script Task
Integrations
Introduction
Connect to Data Table
Connect to API
Events
Call a Subflow
Notify
Delay
Forms
Form Creation
Form Components
Form Actions
Simulate
Publish
Self-Service Portal
Dashboard

SETTINGS
General Settings
Members and Roles
Versioning
Channels
Bot Permissions
Alerts
Import & Export
Change Logs
Delete App

HOW TOs
Creating a Process App
Creating a Process App
Importing and Exporting a Process App
Sharing a Process App with Co-Developers
Configuring a Process App
Defining a Digital Form
Defining a Flow for a Process App
Defining Triggers for a Process App
Using Stencil to Define a Logic for a Process App
Using Events for a Process App
Adding Access Controls to a Digital Form
Calling a Subflow from Process App
Deploying a Process App
Configuring Channels to a Process App
Publishing a Process App
Analyzing a Process App
Stimulating a Process Instance
Creating and Publishing a Process App
Viewing Change Logs Made to Process App Definition
Creating or Restoring a Version of Process App
Adding Bot Permissions to let Bot Trigger the Process App

ADMINISTRATION
Introduction
Assistant Admin Console
Administration Dashboard
User Management
Add Users
Manage Groups
Assistant Management
Assistant Management
Enrollment
Invite Users
Send Bulk Invites
Import User Data
Synchronize Users from AD
Security & Compliance
Using Single-Sign On
Security Settings
Cloud Connector
Billing
  1. Home
  2. Docs
  3. Process Apps
  4. How To Articles
  5. How to Define a Digital Form?

How to Define a Digital Form?

A Digital Form helps you to collect the required data. It allows your users to enter the data you want to process a certain request. Digital Form triggers refer to the triggers that occur through the submission of a digital form. For example, let us consider an employee expense report. An employee has submitted an expense report of $1000. After the submission, the system fetches the user-related information through an API request and follows the approval process. In this scenario, the system uses the API request. The process flow of the Digital Form Trigger is explained below.

Configure Digital Form Trigger

1. After you log in to the Process App, it lands you on the Flow tab.
2. On the right pane, click Digital Form under Triggers.
3. On the Digital Form Trigger window, select Create New Form from the Forms drop-down list.
4. On the New Form dialog box, enter the following details:

  • Name – Enter a name for the digital form. For example, Expense Report
  • Display Name – Enter a display name to easily identify the name.
  • Description – Enter a short description of the digital form

5. Click either Create & Design Form to create a form and redirect the user to the form builder page to design the form, or Create and Build Process Flow to allow the user to create a form and continue working on building the process app flow.

6. On the Digital Form Trigger window, click Add Access Control. It lands you on the Forms page and you can add a component in the master form. You can only update Read-only, Is-Visible, and Visibility settings through access control.
7. Under the HTML to embed form section, you can find the HTML code. Click Copy to copy the HTML code. You can use this HTML iframe code to embed the trigger form in your website. This is needed only if you do not use the portal and the process app is for public access.
8. For Form URL, click the copy icon to copy the URL (representing the trigger form along with the selected instance) displayed in the textbox.
Note: This URL is non-editable.
9. Click Done. You can find the trigger created on the Process Builder.
10. Start to build the flow by notifying the initiator (employee).
11. On the left pane, you can find the Events section. Drag and drop the Notify stencil from this section to the builder.
12. Click the Notify stencil to open the Notify window.
13. On the Notify window, enter the following details:

  • Name – Enter a name for the notification message.
  • Delivery Mode – Select the mode of communication to notify the employee.
  • Recipients – Enter the email address of the employee to receive a notification. You can also use context or variables from the trigger.
  • Subject – Enter the subject for the notification email.
  • Compose Message – Enter the relevant text related to the notification. It also supports context and the addition of variables so that you can include them while composing the message.

14. Close the Notify window.
15. Make an API request to fetch the Manager details of the initiator (employee).
16. On the left pane, you can find the Integrations section. Drag and drop the Connect to API stencil from this section to the builder.
17. Click the Connect to API stencil to open the Connect to API window.
18. On the Connect to API window, enter the following details:

  • Name – Enter the name of the API request. 
  • Type – Select the API request type: REST or SOAP
  • Integration Mode – Select the integration mode: Synchronous or Asynchronous.
  • URL: Click Define Request under the URL field.
    • On the Define Request page, enter the following details:
      • Request TypeGET
      • Request URL – https://608fd39c38473400170203a8.mockapi.io/api/v1/leaverequests (This is an example URL, not for business purposes)
      • This API does not require any Header Parameters.
      • Click the Test Request tab.
      • Click Test on the top-right of the page. Wait for the test to be completed and you get a Status Code: 200.
      • You can see an array of records returned by the API call. In the next step, values are parsed using JavaScript.
      • Click Save on the top-right of the page.

19. Close the Connect to API window.
20. After the successful completion of the API request, the system fetches the Manager details and assigns the task (expense report approval).
21. On the left pane, you can find the Tasks section. Drag and drop the Approval Task stencil from this section to the builder.
22. Click the Approval Task stencil to open the Approval Task window.
23. On the Approval Task window, enter the following details:

  • Name – Enter a name for the approval task.
  • Task Results – You can find Approve and Reject options. Choose to approve or reject the task. You can also rename these options or click Add an Outcome to add more options like On-Hold.

24. Click the Notifications tab to configure the notification settings.
25. Select a Delivery Mode from the drop-down list: Bot or API or Email.
26. Under the Response section, select a Get Response option to send the Manager’s response. These options differ based on the delivery mode selected. If the delivery mode is email, you can get responses through a form or email. If the delivery mode is bot, you can get responses through a form or conversational experience. If the delivery mode is API, you can get responses through APIs. In this example, the selected delivery mode is email.

  • Get Response through a Form – If selected, the Form URL will be inserted into the message composed in the Compose Message section.
  • Get Response through Email – If selected, Buttons for the result outcomes are appended to the message composed in the Compose Message section.

27. Under the Compose Message section, enter the following details:

  • Subject – Enter the subject for the response mail.
  • Compose Message – Enter the details of the response message.
  • Click {..} to add variables to the message. You can also use Context in the message.

28. Click the Assignment tab to configure the recipient settings. You can select any of the below options:

  • Single Recipient – If selected, you can send the response to the recipient configured in this section.
    • Enter the recipient email address in the Recipient ID field.
  • 29. Multiple Recipients – If selected, you can send the response to multiple recipients configured in this section.

    • Enter recipient email addresses separated by a comma in the Recipient ID field.
    • Under the Assignment Logic section, select an option:
      • Assign to All – If selected, the system assigns the task to all recipients.
      • Least Occupied – If selected, the system assigns the task to the recipient with the least number of open tasks.

    30. Group – If selected, you can send the response to a group. Only one of the recipients from the group can complete the task.

    • Enter the group email addresses separated by a comma in the Group ID field.

    31. Close the Approval Task window.
    32. After assigning the task, the Manager can approve or reject the task. To perform this action, you need a logic stencil. You do not always need logic to perform this task, it depends on the use case. But, in this example, a logic stencil is used.
    33. On the left pane, you can find the Logic section. Drag and drop the Split stencil from this section to the builder.
    34. The Split stencil is added to the builder with two branches (Branch1 and Branch2).
    35. Click the Split stencil to open the Split window.
    36. On the Split window, enter the following details:

    • Name – Enter a name for the split action. For example, Manager Decision.
    • Branches – Edit the branches (Branch1 and Branch2) as Approved and Rejected.
    • Split Logic – Select any of the below options:
      • Execute all Branches – If selected, all branches are executed simultaneously.
      • Execute on Condition – If selected, you can define a condition in the Define Condition section below. You can define conditions based on Process Fields, Context, and Process Context. For example, let us select Process Fields. 
        • Under the If condition, Select Field Value and Less than from the respective drop-down lists. In the Value field, enter $2000.
        • From the Go to Branch drop-down list, select Approved.
        • In the Add Else-If section, select Rejected from the Else Go To Branch drop-down list.

    37. Close the Split window.
    38. The next step is to notify the employee about the status of the expense report. Drag and drop the Notify stencil below the Approved and Rejected branches on the builder.
    39. Open the Notify stencil of Approved and Rejected branches and configure the notification details.
    40. The final step is to end the process flow.
    41. On the left pane, you can find the Logic section. Drag and drop the End stencil from this section to the builder.
    42. Click the End stencil to open the End window.
    43. On the End window, select any of the below options:

    • End this Path – If selected, the system will end the current path and all other paths remain active.
    • Terminate all Paths – If selected, the system will terminate all active paths and end the process flow.

  1. Home
  2. Docs
  3. Process Apps
  4. How To Articles
  5. How to Define a Digital Form?

How to Define a Digital Form?

A Digital Form helps you to collect the required data. It allows your users to enter the data you want to process a certain request. Digital Form triggers refer to the triggers that occur through the submission of a digital form. For example, let us consider an employee expense report. An employee has submitted an expense report of $1000. After the submission, the system fetches the user-related information through an API request and follows the approval process. In this scenario, the system uses the API request. The process flow of the Digital Form Trigger is explained below.

Configure Digital Form Trigger

1. After you log in to the Process App, it lands you on the Flow tab.
2. On the right pane, click Digital Form under Triggers.
3. On the Digital Form Trigger window, select Create New Form from the Forms drop-down list.
4. On the New Form dialog box, enter the following details:

  • Name – Enter a name for the digital form. For example, Expense Report
  • Display Name – Enter a display name to easily identify the name.
  • Description – Enter a short description of the digital form

5. Click either Create & Design Form to create a form and redirect the user to the form builder page to design the form, or Create and Build Process Flow to allow the user to create a form and continue working on building the process app flow.

6. On the Digital Form Trigger window, click Add Access Control. It lands you on the Forms page and you can add a component in the master form. You can only update Read-only, Is-Visible, and Visibility settings through access control.
7. Under the HTML to embed form section, you can find the HTML code. Click Copy to copy the HTML code. You can use this HTML iframe code to embed the trigger form in your website. This is needed only if you do not use the portal and the process app is for public access.
8. For Form URL, click the copy icon to copy the URL (representing the trigger form along with the selected instance) displayed in the textbox.
Note: This URL is non-editable.
9. Click Done. You can find the trigger created on the Process Builder.
10. Start to build the flow by notifying the initiator (employee).
11. On the left pane, you can find the Events section. Drag and drop the Notify stencil from this section to the builder.
12. Click the Notify stencil to open the Notify window.
13. On the Notify window, enter the following details:

  • Name – Enter a name for the notification message.
  • Delivery Mode – Select the mode of communication to notify the employee.
  • Recipients – Enter the email address of the employee to receive a notification. You can also use context or variables from the trigger.
  • Subject – Enter the subject for the notification email.
  • Compose Message – Enter the relevant text related to the notification. It also supports context and the addition of variables so that you can include them while composing the message.

14. Close the Notify window.
15. Make an API request to fetch the Manager details of the initiator (employee).
16. On the left pane, you can find the Integrations section. Drag and drop the Connect to API stencil from this section to the builder.
17. Click the Connect to API stencil to open the Connect to API window.
18. On the Connect to API window, enter the following details:

  • Name – Enter the name of the API request. 
  • Type – Select the API request type: REST or SOAP
  • Integration Mode – Select the integration mode: Synchronous or Asynchronous.
  • URL: Click Define Request under the URL field.
    • On the Define Request page, enter the following details:
      • Request TypeGET
      • Request URL – https://608fd39c38473400170203a8.mockapi.io/api/v1/leaverequests (This is an example URL, not for business purposes)
      • This API does not require any Header Parameters.
      • Click the Test Request tab.
      • Click Test on the top-right of the page. Wait for the test to be completed and you get a Status Code: 200.
      • You can see an array of records returned by the API call. In the next step, values are parsed using JavaScript.
      • Click Save on the top-right of the page.

19. Close the Connect to API window.
20. After the successful completion of the API request, the system fetches the Manager details and assigns the task (expense report approval).
21. On the left pane, you can find the Tasks section. Drag and drop the Approval Task stencil from this section to the builder.
22. Click the Approval Task stencil to open the Approval Task window.
23. On the Approval Task window, enter the following details:

  • Name – Enter a name for the approval task.
  • Task Results – You can find Approve and Reject options. Choose to approve or reject the task. You can also rename these options or click Add an Outcome to add more options like On-Hold.

24. Click the Notifications tab to configure the notification settings.
25. Select a Delivery Mode from the drop-down list: Bot or API or Email.
26. Under the Response section, select a Get Response option to send the Manager’s response. These options differ based on the delivery mode selected. If the delivery mode is email, you can get responses through a form or email. If the delivery mode is bot, you can get responses through a form or conversational experience. If the delivery mode is API, you can get responses through APIs. In this example, the selected delivery mode is email.

  • Get Response through a Form – If selected, the Form URL will be inserted into the message composed in the Compose Message section.
  • Get Response through Email – If selected, Buttons for the result outcomes are appended to the message composed in the Compose Message section.

27. Under the Compose Message section, enter the following details:

  • Subject – Enter the subject for the response mail.
  • Compose Message – Enter the details of the response message.
  • Click {..} to add variables to the message. You can also use Context in the message.

28. Click the Assignment tab to configure the recipient settings. You can select any of the below options:

  • Single Recipient – If selected, you can send the response to the recipient configured in this section.
    • Enter the recipient email address in the Recipient ID field.
  • 29. Multiple Recipients – If selected, you can send the response to multiple recipients configured in this section.

    • Enter recipient email addresses separated by a comma in the Recipient ID field.
    • Under the Assignment Logic section, select an option:
      • Assign to All – If selected, the system assigns the task to all recipients.
      • Least Occupied – If selected, the system assigns the task to the recipient with the least number of open tasks.

    30. Group – If selected, you can send the response to a group. Only one of the recipients from the group can complete the task.

    • Enter the group email addresses separated by a comma in the Group ID field.

    31. Close the Approval Task window.
    32. After assigning the task, the Manager can approve or reject the task. To perform this action, you need a logic stencil. You do not always need logic to perform this task, it depends on the use case. But, in this example, a logic stencil is used.
    33. On the left pane, you can find the Logic section. Drag and drop the Split stencil from this section to the builder.
    34. The Split stencil is added to the builder with two branches (Branch1 and Branch2).
    35. Click the Split stencil to open the Split window.
    36. On the Split window, enter the following details:

    • Name – Enter a name for the split action. For example, Manager Decision.
    • Branches – Edit the branches (Branch1 and Branch2) as Approved and Rejected.
    • Split Logic – Select any of the below options:
      • Execute all Branches – If selected, all branches are executed simultaneously.
      • Execute on Condition – If selected, you can define a condition in the Define Condition section below. You can define conditions based on Process Fields, Context, and Process Context. For example, let us select Process Fields. 
        • Under the If condition, Select Field Value and Less than from the respective drop-down lists. In the Value field, enter $2000.
        • From the Go to Branch drop-down list, select Approved.
        • In the Add Else-If section, select Rejected from the Else Go To Branch drop-down list.

    37. Close the Split window.
    38. The next step is to notify the employee about the status of the expense report. Drag and drop the Notify stencil below the Approved and Rejected branches on the builder.
    39. Open the Notify stencil of Approved and Rejected branches and configure the notification details.
    40. The final step is to end the process flow.
    41. On the left pane, you can find the Logic section. Drag and drop the End stencil from this section to the builder.
    42. Click the End stencil to open the End window.
    43. On the End window, select any of the below options:

    • End this Path – If selected, the system will end the current path and all other paths remain active.
    • Terminate all Paths – If selected, the system will terminate all active paths and end the process flow.

Menu