prechatAPI
This object contains all the APIs associated with pre-chat. For a guide, see Pre-Chat API.
Removes hidden pre-chat fields from Salesforce. This method must be called after the onEmbeddedMessagingReady
event is dispatched and before the conversation begins.
Parameter | Type | Description |
---|---|---|
First parameter | Array of strings | Array of strings containing the pre-chat fields to be removed from the conversation. |
Sends hidden pre-chat fields to Salesforce. This method must be called after the onEmbeddedMessagingReady
event is dispatched and before the conversation begins.
Parameter | Type | Description |
---|---|---|
First parameter | object | A list of key-value pairs contains the pre-chat field names and their values. |