function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sai Lightning 10Sai Lightning 10 

Validate Live Agent pre chat from with case record

Hi , 

can you please suggest the best way to validate Salesforce live Agent pre caht form with case record.

Ex : case email id = abc@bac.com(Salesforce record)
From pre chat from if user is not enterd email as abc@abc.com i want show an error.
  
Mohamed IthrisMohamed Ithris
Hello Sai,

You need to Achieve by Customize the Visualforce page or Lightning Components.

I hope you have Prechat page :
So implement the Validation in any Javascript.
Like : Null Check,Email Format,Custom Validation.

   <td class="labelInput">Email*:</td><td> 
          <input type="text" name="liveagent.prechat:Email" id="EmailMapping" style="formTextBox" class="validate[required,custom[email],length[0,70]] text-input" />
        </td>

Thanks
Mohamed Ithris