OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Salesforce Customer Chat refresh preChat field on click of a button

  • Thread starter Thread starter Adhishreya P
  • Start date Start date
A

Adhishreya P

Guest
How to refresh the extraPrechatFormDetails details once the chat bot is loaded but before opening the chat window? I want to refresh the details on click of a button before the chat window opens.

Reference

I have tried resetting these details(below) on click of a button but it doesn't yield required result (the updated values doesn't get passed).

Code:
embedded_svc.settings.extraPrechatFormDetails=[{....}]

<p>How to refresh the <code>extraPrechatFormDetails</code> details once the chat bot is loaded but before opening the chat window? I want to refresh the details on click of a button before the chat window opens.</p>
<p><a href="https://developer.salesforce.com/do...apins_web_dev/snapins_web_prechat_details.htm" rel="nofollow noreferrer">Reference</a></p>
<p>I have tried resetting these details(below) on click of a button but it doesn't yield required result (the updated values doesn't get passed).</p>
<pre><code>embedded_svc.settings.extraPrechatFormDetails=[{....}]
</code></pre>
 
Top