Add note to chat or contact form

Sometimes you may need to pass some additional information to the chat or contact form that will be displayed to an agent. For example, it can be cart id of customer shopping cart. If an agent can see this cart id he can check what is in customer's cart.

Adding note to chat / contact form
1. locate integration code of your chat or contact us button. it should look like this:
<script type="text/javascript">
(function(d, src, c) { var t=d.scripts[d.scripts.length - 1],s=d.createElement('script');'la_x2s6df8d';s.async=true;s.src=src;s.onload=s.onreadystatechange=function(){var rs=this.readyState;if(rs&&(rs!='complete')&&(rs!='loaded')){return;}c(this);};t.parentElement.insertBefore(s,t.nextSibling);})(document,
function(e){ LiveAgent.createButton('1e374626', e); });

2. modify following line:

function(e){ LiveAgent.createButton('1e374626', e); });
and add note , '[[NOTE]]'
function(e){ LiveAgent.createButton('1e374626', e, '[[NOTE]]'); });
  3. agent will see this note on top of the ticket created from this chat or contact us button: