Question Box
Object that allows the opening of a question box on the screen.
Last updated
Object that allows the opening of a question box on the screen.
Last updated
Important:
This operation will pause the robot execution while the question box is not closed or answered.
Field | Description |
---|---|
Title | It's the object's name and doesn't need to be changed, unless you want to identify it to make it easier to find it on the robot, for example: "Question Box - ask for user's email". |
Object Identifier Name | It is a object's singular identifier and doesn't need to be changed, but you can rename it if you want to find it more easily when using it on other objects. Just remember that this name must be unique and without spaces or special characters. |
Insert a title / Insert a question | Texts that will show up in the window title of the question box. |
INTERPOLATION
This is a technical concept used in programming and you don't need to worry about changing it at this point.
It can be used in robots that need to capture user's information at run time, such as filling in personal data.
Situations in which some code changes during the robot's execution, for example when it's necessary to log in to a website that uses 2-step verification and sends an SMS to the user containing a code. Just use the question box for the user to enter the code received and then the robot will continue with the execution.
To capture user's email and use the response.
STEP 1: Drag the object to Studio workspace and define the question to be asked.
This will be the question box result:
STEP 2: The email entered by the user in the question box will be automatically recorded in a variable in the robot's memory. To use it, find the name given to the object in the Question Box (Object Identifier Name).
To learn more about variables, click here.
STEP 3: Now we will use the "inputDialog1" variable in a Message Box object which will show the text entered by the user on the screen.
STEP 4: Run the robot and enter an email. Verify if the message box returns the right result.
In this example, we used the user's text to display on screen, but you could print it to a file, send it in an email, use it in any condition of your robot, etc.