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
NJ_RayNJ_Ray 

Need the Chat Button to live on a Prechat like form

All this while I have seen and played around with the chat button to open up the pre-chat form and then send the chat request out to the agent but my needs are the opposite now- My clients need a way in which the help form(which acts like the pre-chat form) should display the live chat button if an agent is available to chat. I have created a sample pre-chat form in html, also embeded the chat button code on the same page which displays if the agents are online, but how do I make the javascript logic work so that when the form is submitted(upon clicking on Chat Now) the chat button should carry forward the information to the Liveagent.