Forms MetaBot
The Human-Bot Collaboration Forms MetaBot is used for creating logic that can retrieve values from the specified fields.
Logic | Description |
---|---|
Get Control Value | Used to retrieve the Generic Control value and
assign it to a local variable. Note: Retrieving a Date value returns the output as date and time values.
|
Get File Control Value | Used to retrieve the File Control value and
assign it to a local variable. Note: Value is a path string. |
Get Screenshot Control Value | Used to retrieve the Screenshot Control value and
assign it to a local variable. Note: Value is a path string. |
Sample use case
Consider a scenario where a client requires an insurance registration form. This form is then linked to a bot using a script from the Human-Bot Collaboration Designer. The script is created on the Enterprise Client Workbench by a user with a Bot Creator role.
- In the new Workbench screen, go to Get Control Value.
Control Value can retrieve a specific input from a file (form) and assign it to an output variable. This can help in retrieving the value that the user enters on the form and display it on the screen.
- In the Property name value
of the form.
Select a form field for the input parameter.
field, enter the - In the Tip: Press F2 from the keyboard to view the available values. You can select $Prompt-Assignment$ as the output variable.
field, insert a variable where the output must be assigned.
and click - In the Property name value
of the form.
- Click Save.
The run logic for the form is created in the Workbench.
- Click Commands and drag the Message
box.
This enables you to display the selected value from the linked form as a message on the screen.
- In the Message Box screen, enter a message that the user
must see.
For example, you can enter New Applicant: $Prompt-Assignment$.
- Repeat the run logic and message box for all the fields in the form that you want to link.
- Click Save.
- Choose the folder where you want to save this script.
This script is linked to the form that you create in the Human-Bot Collaboration Designer.