In Live Agent, sometimes we need to pass some values from the page, where Start Chat button is located, to Pre-chat form.
To achieve this, we use
liveagent.addCustomDetail() function to set the values. On Pre-chat form page, we use
liveagent.details.preChatInit() function to access those details.
Follow below steps to enable it.