I am working on AARI forms. I am able to read text box values from the form in my task bot but unable to read checkbox values. Can any one please help/
Below is my form-
and this is my Process -
the variable vProject_Name is the input variable in my task bot and it is getting the textbox value from the form correctly. Where as the variable vDefault_Folders which should return the checkbox values is returning empty.
Hi @Anifa Mohammed
A checkbox output is a dictionary variable represented like follow:
{
"CheckBoxGroup0_0": true,
"CheckBoxGroup0_1": false,
"CheckBoxGroup0_2": true
}
where CheckBoxGroup0 is the ID of the checkbox and 0,1,2 are the index of the choices/options.
In your example, the output dictionary will look like:
{
"CheckBoxGroup0_0": true,
"CheckBoxGroup0_1": false,
"CheckBoxGroup0_2": false,
"CheckBoxGroup0_3": false,
"CheckBoxGroup0_4": false,
}
with CheckBoxGroup0_0 representing the Folder1 choice.
Now if you want to use this dictionary inside a bot, then create a Dictionary type variable (set as input) in your bot and then feed the value from the checkbox into this variable (like a TextBox or TextArea) using the variable picker.
It should look like
$input>CheckBoxGroup0]$
Let me know if this helps you.
--Geoffrey
Hi @Geoffrey Laissus ,
This is my dynamic checkbox values that are from db.
How can I map these checkbox values other than true/false (i mean 00100,00400,76506) in bot variable.
In my example, the output dictionary will look like:
{
"CheckBoxGroup0_1": false,
"CheckBoxGroup0_2": true,
"CheckBoxGroup0_0": true,
"CheckBoxGroup0_3": false,
"CheckBoxGroup0_4": true,
}
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.