LiveZilla Live Chat
EN  DE Please sign in or register Hi
LiveZilla chat works great - makes it easy to capture a customer's interest and have a quick discussion...
Pat Picciano
Show all reviews


Frequently Asked Questions


How can I validate user inputs before granting access to the chat?


LiveZilla provides a simple but powerful validation functionality that allows you to process/validate user inputs before granting access to the chat or allowing to create a ticket.

When this feature is activated, LiveZilla will send the user input value to a self written script that validates the input and returns the Javascript command to grant or decline access.

This can be set up individually for each of your chat / ticket input fields.

Please find the related configuration under:
Server Configuration -> Input Fields -> Validation

You will need to specify the URL of your custom validation script. LiveZilla will pass two GET parameters to your script on runtime.


GET Parameters
  1. inputid
    The id of the input field.

  2. value
    The user input.


Example URL:

Please note: placeholders (<!--...-->) will be replaced by LiveZilla during runtime

http://website.domain/valid.php?inputid=<!--input_id-->&value=<!--value-->


A simple PHP validation script would look like this:

if($_GET["inputid"] == "111" && $_GET["value"] == "secret")
{
 echo "lz_validate_input_result(true,111);";
 exit();
}
else
{
 echo "lz_validate_input_result(false,111);";
 exit();
}










Return to FAQ