Two features that I’m looking to deploy sooner than later to webchat.
Timestamps on responses, in the webchat display customer facing (helps customers keep track of when the agent responded)
Also Embeddeding the question metadata in the initial welcome to chat message.
Was hoping for any ideas on accomplishing these two features. I know that the proper way to do this is going to be to extend the fastpath plugin server side, however time crunch means hacking the JSP for now.
The result will look something like the attached image.
Oh, and for the OP, the metadata are saved as session variables in JSP, so just search other pages like start.jsp and queue.jsp for the code “session.setAttribute” to see all the different data you have to work with. Then search chatmain.jsp for “getChatRoomWelcomeMessage” and add this on the line after it:
var Question = “<%=session.getAttribute(“Question”)%>”;
I followed your instruction for timestamp and question issue. That works fine and I remove AM/PM since the time display is 24 hours format. I also put that timestamp code in the SubmitMessage function to include the timestamp when client submits message like below.