Page tree

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

FunctionUse

lvcore.getFormData()

This function 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)This function hides text as it is entered (for example, passwords or credit card information).
lvcore.setFormData()This function 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()This function displays text as it is entered.
lvcore.updateScriptDataAll()By default, the script data is updated after a call is terminated. This function forces an update before the call is terminated.
lvcore.validateField(element, focus, forceMatching)Through the focus and forceMatching parameters, this function 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.
  • No labels