.field.clear()
This API would let you clear the default/custom fields that you would have displayed in the chat window of your visitors(pre-chat form).
Note:
- Default fields are as follows:
- name - siq_name
- email - siq_email
- phone number - siq_phonenumber
- However you can also clear the custom fields with the names you have specified in the APIs.
Syntax
Copied$zoho.salesiq.field.clear(["<name of the field>"]);
Example
Copied<script>
$zoho.salesiq.ready = function()
{
$zoho.salesiq.field.clear(["siq_name","siq_email","siq_phonenumber"]);
}
</script>