Clear Element

Clear element is used to reset the selected element’s value, or if no elements are selected, the fields in the form element where the clear element is placed in.

The clear element can be nested in the following parent elements: block, error, filled, if, noinput, nomatch, timeout, and it cannot have child elements.

* = Specific to Sinch Contact Center

Attributes for clear Element

Description

Elements to Clear

Select the element for reset from the drop-down list, and add it with the plus (+) sign. The list consists of the following element types, elements may appear anywhere in the VoiceXML.

Element

Result Value That Is Cleared

callout*

The last callout result object.

customstate*

The result of executing a method defined in the customstate element

field

  • The noinput event counter, set to 0.

  • The nomatch event counter, set to 0.

  • The last stored DTMF input value.

form

Note:

The form, and the field elements it contains, are cleared either when you select the form element to be cleared, or just place a clear element in the form (for example using a block).

  • The noinput event counter, set to 0.

  • The nomatch event counter, set to 0.

  • All field elements nested in the form

menu

  • The noinput event counter, set to 0.

  • The nomatch event counter, set to 0.

  • The last valid input value.

record

The recorded file name.

soap*

The query result object.

transfer

The transfer failure cause code.

var

The variable’s value.

Note:

Only global variables, or ones placed above the clear element will appear in the drop-down list.

Description*

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