LiveHelpNow Help Desk

Support Center

BASIC

ADVANCED

Exact Match:

  • Home
  • Categories
  • Sign in
  • Home
  • Categories
  • |
  • Sign in
  1. Home
  2. Categories
  3. Supplying already known pre-chat fields

Supplying already known pre-chat fields

  • Date updated 2019-04-10
  • Author LiveHelpNow
  • Comments 0
  • Rating
  • Categories
  • Advanced Customization
  • HelpOut Tab
  • Chat Buttons
  • Chat Windows
  • Tags
  • pre-chat requirements
  • chat fields

Is it possible to supply and pre-fill on the pre-chat form already known information by our website such as customer name, email, etc?

You may easily supply pre-chat fields to be pre-filled within the pre-chat window so customer does not have to provide an already known by your website/service information.

Here are the easy steps:

  1. Make sure that every prechat field is linked to a CRM field in Admin panel->Chat system->Customization->Prechat requirements





  2. Include JavaScript object supplying known fields within LiveHelpNow live chat or helpOut tab button code like so:


    var lhnPreChatValues = {"full_name":"John Doe","email":"johndoe@johndoe.com","phone_number":"222-222-2222","website":"www.johndoe.com"};
    



    prefix field keys with a dash if you would like to disable customer's ability to edit the pre-chat field before submission like so:

    var lhnPreChatValues = {"-full_name":"John Doe","-email":"johndoe@johndoe.com","phone_number":"222-222-2222","website":"www.johndoe.com"};

    in the above examples customer will not be able to edit Name and Email fields and only phone number and website.

  3. The fields will now be pre-filled on the pre-chat form:





  4. Here's the list of all available fields for linking within JavaScript object:

    title
    first_name
    last_name
    full_name
    email
    company
    website
    phone_number
    street_address
    city
    state
    zip
    country
    inquiry
    inquiry_type
    custom_identifier_1
    custom_identifier_2
    custom_identifier_3
    custom_identifier_4
    custom_identifier_5
    custom_identifier_6
    custom_identifier_7
    custom_identifier_8
    custom_identifier_9
    custom_identifier_10



    If your website does not use JavaScript snippet for LiveHelpNow live chat button or helpOut tab code, you may also supply prechat values via chat window URL parameters like so:

    https://www.livehelpnow.net/lhn/lcv.aspx?d=DEPARTMENTID&ms=&zzwindow=WINDOWID&lhnid=ACCOUNTID&pcv=%7b%22full_name%22%3a%22Michael%22%2c%22email%22%3a%22email@email.com%22%7d

    The above is a URL encoded JavaScript Object: {"full_name":"Michael","email":"email@email.com"}

 

For embedded widget use this code:

 

For embedded widget:

window.lhnJsSdkInit = function () {
	....
		
lhnJsSdk.controls = [{ ....
}]; lhnJsSdk.preChatData = {
  "key": "value",
  "key": "value",
  etc...
  };

};


Where key is the name of the field from the list of available fields shown above.

You may also supply "auto_submit":true key to have the prechat values automatically submit when a customer launches chat like so:

lhnJsSdk.preChatData = {
  "first_name": "michael",
"last_name":"smith",
  "auto_submit": true
 };

Rate this article


Your email is now subscribed to alerts for this article

Your email is not subscribed to alerts for this article

Subscribe to alerts for this article below

Unsubscribe to alerts for this article below


Leave a comment?

Related articles

  • What are the Software Requirements for running the LiveHelpNow Alerter?
    • 28884
    • 64
    • 0
  • Installation on a Flash based website
    • 24603
    • 61
    • 0
  • Custom information feed
    • 29851
    • 28
    • 0
  • Installation as a Tab Slideout - LiveHelpNow HelpOut Tab
    • 38758
    • 35
    • 0
  • How to disable chat invitation door bell sound
    • 24992
    • 63
    • 0
  • Install live chat as a link
    • 27964
    • 61
    • 0
  • Custom Live Chat Buttons
    • 35703
    • 87
    • 0
  • Trigger chat invitations
    • 28095
    • 61
    • 0
  • Dynamic chat invitations
    • 28709
    • 66
    • 0
  • Live Chat operator online/offline detection via JavaScript
    • 27994
    • 70
    • 0

Popular Knowledge Base Articles

  • Customize with different languages
    • 22206
    • 27
    • 0
  • LiveHelpNow Section 508 Compliance & Accessibility for Visually Impaired Users
    • 17630
    • 61
    • 0
  • Unsecured content warnings
    • 16504
    • 57
    • 0
  • HelpOut Tab - changing Chat, Ticket and Callback button images
    • 24299
    • 27
    • 0

Knowledge Base Authors

  • Michael Conde
    Michael Conde
    Total articles: 11
  • LiveHelpNow
    LiveHelpNow
    Total articles: 254

Company Sites

Home

Blog

Categories

  • General Questions
  • Getting Started
  • Customization
  • Advanced Customization
  • Troubleshooting
  • All Categories

Connect With Us

  • LiveHelpNow, LLC
  • Customer Support Software
  • 515 S West End Blvd
    Suite 202
    Quakertown, PA 18951

  • 8775483001
  • help@livehelpnow.com
  • https://www.livehelpnow.net
    Powered by LiveHelpNow customer support suite