Script Controls

This section describes the controls that you can add to a script.

Data entry element

Data entry element

A Data entry element is a form that consists of one or more data entry controls, such as text boxes, radio buttons, and dropdowns.

You design data entry elements using the Data Entry Designer. From the Script Designer, you can create new data entry elements and view existing data entry elements.

Property Description
Element name

Select the data entry element to use, or click Add to create a new data entry element.

If you choose to create a new data entry element, you’ll have the option to open and start editing it straightaway.

Exit condition(s)

Defines the different branches that the script can take from here and, for each branch, the condition that must be met for that branch to be taken. For example, an exit condition might be the agent clicking a particular radio button.

For each exit condition, the Condition name is the name of the exit condition (as shown in the script) and the Condition is the expression that determines when that path should be taken. Click the Condition box to show the Calculation Builder. (See Calculation Builder for information about using that.)

Click Add to add an exit condition or The minus button to delete an exit condition.

On enter log text

Type text to write to the SCRIPTLOGGING database table when the script reaches this point.

Only logged where the agent reaches this point in the script by moving forward. Where the agent reaches this point by clicking Previous to move back, nothing is logged.

On exit log text Type text to write to the SCRIPTLOGGING database table when the script leaves this point.
Run always log text

Type text to write to the SCRIPTLOGGING database table when the script reaches this point.

Logged every time that this point is reached, regardless of whether the agent is moving forward or backward through the script.

On enter actions

Select actions to perform when the script reaches this point.

Only performed where the agent reaches this point in the script by moving forward. Where the agent reaches this point by clicking Previous to move back, these actions are not performed.

On leave actions Select actions to perform when the script leaves this point.
Run always actions

Select actions to perform when the script reaches this point.

Performed every time that this point is reached, regardless of whether the agent is moving forward or backward through the script.

Script

Script

A Script is another script that you have designed in the Script Designer.

You can break up a large and complex script into several smaller and more manageable subscripts and then link these together using Script controls.

Property Description
Script name

Select the script to use, or click Add to create a new script.

If you choose to create a new script, you’ll have the option to open and start editing it straightaway.

Exit condition(s)

Defines the different branches that the script can take after leaving the subscript and, for each branch, the condition that must be met for that branch to be taken.

Click Add to add an exit condition or The minus button to delete an exit condition.

On enter log text

Type text to write to the SCRIPTLOGGING database table when the script reaches this point.

Only logged where the agent reaches this point in the script by moving forward. Where the agent reaches this point by clicking Previous to move back, nothing is logged.

On exit log text Type text to write to the SCRIPTLOGGING database table when the script leaves this point.
Run always log text

Type text to write to the SCRIPTLOGGING database table when the script reaches this point.

Logged every time that this point is reached, regardless of whether the agent is moving forward or backward through the script.

On enter actions

Select actions to perform when the script reaches this point.

Only performed where the agent reaches this point in the script by moving forward. Where the agent reaches this point by clicking Previous to move back, these actions are not performed.

On leave actions Select actions to perform when the script leaves this point.
Run always actions

Select actions to perform when the script reaches this point.

Performed every time that this point is reached, regardless of whether the agent is moving forward or backward through the script.

Jump point

Jump point

Use a Jump point to jump to any other element in your script.

Property Description
Element to jump to

Select the element that you want to jump to.

On enter log text Type text to write to the SCRIPTLOGGING database table when the script reaches this point.
On exit log text Type text to write to the SCRIPTLOGGING database table when the script leaves this point.
Stopbox

Stopbox

Use a Stopbox to end a script branch. When this point in a script is reached, the script closes.

You don’t need to end a script branch with a Stopbox. It’s perfectly valid to end a script branch with, say, a data entry element with no exit conditions. You could put a Completion button on this data entry element.

If a script branch doesn’t end with a Stopbox, the agent can go back in the script, if required. Once a Stopbox is reached, however, the script is closed and the agent can’t retrieve it.

Property Description
On enter log text Type text to write to the SCRIPTLOGGING database table when the script reaches this point.