Request input data on the web page

​Below is an example showing code (only showing the code in the form tag) needed to request input from the chatter (e.g. nickname, chatId, chatIssue, or queueKey) before launching the chat. This is to include input parameters in the chat without using the built-in form (that requests these inputs in the chat itself).

<span>Your name</span>
<input id="nickName" name="nickName" type="text" value="my name" /><br/>
<span>Your e-mail address</span>
<input id="chatId" name="chatId" type="text" value="" /><br/>
<input id="queueKey" name=" queueKey " type="text" value="Q_CHAT" /><br/>
<span>Customer Input</span>
<input id="customerInput" name="customerInput" type="text" value="" /><br/>
<button class="chatstarter" name="startChat">Start chat</button>
<div id="someID" class="intelecomchat"></div>

$(document).ready(function () {
customerKey: '12345',
showStarter: false,
onChatStart: function () {
$(this).intelecomChat('reloadOptions', {
nickName: document.getElementById('nickName').value,
chatId: document.getElementById('chatId').value,
queueKey: document.getElementById('queueKey').value,
variables: {
"url": window.location.href,


Last updated