Question Box

Object that allows the opening of a question box on the screen.

Settings

Settings

General object layout

Filling in the object:

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.

USE CASES

  • 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.

Example

To capture user's email and use the response.

STEP 1: Drag the object to Studio workspace and define the question to be asked.

Filling in the "Question Box" object form

This will be the question box result:

Question box layout

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.

Finding variable name

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.

Using a variable in the Message Box

STEP 4: Run the robot and enter an email. Verify if the message box returns the right result.

Example robot execution

Download it:

Last updated

Was this helpful?