Block and Form Elements

The block and form elements are used as containers for other elements that form a logical sequence. The block sequence can be conditional. When you have defined a suitable form or block, you can easily copy and paste them to other parts of the same IVR, or even to a different IVR.

Note:

If you define a variable var in a block or form element, the variable is available only for functions in that block or form element. To define global variables, add them to the main level.

Block

The block element can be nested in the form element and in the main level (vxml).

It can have the following child elements: assign, audio, callout, clear, customstate, disconnect, exit, goto, if, log, prompt, setlanguage, setpriority, setskills, soap, var.

* = Specific to Sinch Contact Pro

Attributes for block Element

Description

Identifier

Enter a descriptive identifier, either a short name or number. The identifier appears in the ID column, and it is used as an address when the call is transferred to this element.

Condition

Set a condition that applies to the entire sequence of elements included in the block element.

Define the condition with a Python statement using one of the following options:

  • Use a ready-made condition:

    1. Select the condition from the drop-down list, they are indicated with Condition:.

    2. Select x (and y) from the drop-down list, or write the value, variable or Python statement.

    3. Click OK.

  • Choose a query, status, variable or other statement from the drop-down list, and complete the Python statement. For example, to make a condition that A-number must be 12345, choose a variable {ANUMBER} from the drop-down list and enter == "12345".

  • Enter the whole statement in Python code.

Description*

Enter a description of your element; what is it planned for, its requirements and limitations.

Form

The form element can be nested in the main level (vxml), only.

It can have the following child elements: block, callout, customstate, field, filled, noinput, nomatch, record, soap, transfer, var.

Attributes for form Element

Description

Identifier

Enter a descriptive identifier, either a short name or number. The identifier appears in the ID column, and it is used as an address when the call is transferred to this element.

Description*

Enter a description of your element; what is it planned for, its requirements and limitations.