Skip to main content
HI All,

We have implemented chatbot and that chatbot used into community site page.Community page automatically Sync with SSO.

Using Prechat form fields getting username and email based on SSO.

But my problem is that, donot want display prechat fields in chatbot window or else we want make it read only fields?

Any idea without using Prechat from fields to get the site username and Email values?

 
1 réponse
  1. 30 juin 2021, 08:07
    Hi Murugan,

    There seems to be no direct way to achieve this requirement.

    You cannot use 'readOnly' property over here, since property functionality isn't developed on backend.

    Below is the link for your reference

    https://developer.salesforce.com/docs/atlas.en-us.snapins_web_dev.meta/snapins_web_dev/snapins_web_prechat_details.htm

    Alternate Solution : Create a custom component for PreChat in Embeded Service Deployment 

    However, there us a standard chat method to get details about the chat being generated in apex.

    Please check out it on below link:

    https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_getDetailsByChatKey.htm

    It returns the details of the chat associated with a specific chat key.

    Hope above information helps. Please mark as Best Answer so that it can help others in future.

    Thanks.