Page tree

Using the Javascript tab, you can write Java code using the available predefined functions, script data, and agent parameters created for the script to function. The following table describes the use of certain script functions that appear in the Functions section of the JavaScript tab.

The Javascript tab in the Script section controls the functions for the entire script; whereas, the Javascript tab in the Page section controls the code on a page level.

The following table describes the use of certain script functions that appear in the Functions section of the JavaScript tab.

Function

Use

LiveVox API


lvcore.completeConference()

Enables you to close a conference.

lvcore.leaveConference()

Enables you to exit from the conference.

lvcore.reconnectCall()

Enables you to reconnect back to the conference.

lvcore.setPendingStatus(ready,breakCode)

Sets the pending status to either ready or breaks code. That is, defines if the Boolean disposition should go to ready (true) or not ready (false).

lvcore.transferCall(phone, extension, delay, secure);

Sets the call transfer to phone, extension, delay, or secure.

Script Credit Card


lvcore.getFormData()

Collects all the data entered on the current dialog/page so that they can be immediately used as a variable within the script.
lvcore.mask(text)Hides text as it is entered (for example, passwords or credit card information).
lvcore.setFormData()Updates all the data entered on the current dialog/page so that they can be immediately used as a variable within the script.
lvcore.unmask()Displays text as it is entered.
lvcore.updateScriptDataAll()Forces an update before the call is terminated. By default, the script data is updated after a call is terminated. 
lvcore.validateField(element, focus, forceMatching)Ensures that the agent has entered the same information twice. For example, when creating a password, you are prompted to enter the same password twice for validation. This function uses the focus and forceMatching parameters,
  • No labels