You need to sign in to do that
Don't have an account?
How can I add simple text into the Salesforce Embedded Chat pre-chat form without building a custom pre-chat lightning component?
I have a standard pre-chat form for Salesforce Embedded Chat that I would like to add some introductory title text to. I know this can be done by changing the pre-chat form to a custom lightning component, but for the sake of simplicity, I'd like to avoid resulting to a custom lightning component if possible.
Here's a screenshot of the text I would like to add to the form, before the fields. Currently, I am using an image for this, the text you see on the blue background is actually an image.
Screenshot: https://prnt.sc/ss0bcj
I tried checking in my org but unfortunately, I was not able to add any text I was only able to add an image as you have shown in the link. To my knowledge, I think that might not be possible with standard functionality.
Regards,
Anutej.
All Answers
I tried checking in my org but unfortunately, I was not able to add any text I was only able to add an image as you have shown in the link. To my knowledge, I think that might not be possible with standard functionality.
Regards,
Anutej.
https://developer.salesforce.com/docs/atlas.en-us.snapins_web_dev.meta/snapins_web_dev/snapins_web_chat_events.htm
Must be tested with many options that can change the header during a session of chat.
You can save that text as an image and use that image as the Pre-Chat Background. Other than that, you'll need to do a custom lightning component.
Steps mentioned in article: https://developer.salesforce.com/docs/atlas.en-us.snapins_web_dev.meta/snapins_web_dev/snapins_web_set_chat_images.htm
Related: https://success.salesforce.com/answers?id=9063A000000pZ59QAE
The hack will remain stable for the readability with always a perfectly clear message (easy to change). It is also easy to clear it with a new event of the chat.
The only problem of all the hacks is when the query selector becomes inactive because Salesforce change the name of the generated internal DIV.
( document.querySelector("div.formContent.embeddedServiceSidebarForm"); )
Did you get the answer for this? I have the same requirement I tried with embedded_svc.addEventHandler("afterMaximize", function(data) and customized according to the requirement but once i close the chat page and open it again text message disappears have to refresh page everytime.
If anyone have solution please let me know. thanks