findOrCreate.displayToAgent

Use the findOrCreate.displayToAgent method to specify which pre-chat details will be displayed to agents for incoming chats in the widget and in the Details tab when they receive a chat request.

Usage 

Specifies which pre-chat details to display to an agent in the Details tab in Salesforce console when the agent receives a chat request. Typically, this method is only used to hide particular custom details from the agent but setting its value to false.

Available in API versions 29.0 and later.

Syntax 

<input type= “hidden” name= “liveagent.prechat.findorcreate.displayToAgent: String detailName” value= “Boolean display” />

Parameters 

NameTypeDescriptionAvailable Versions
detailNameStringThe name of the detail to display to an agent when they receive a chat request.Available in API versions 29.0 and later.
displayBooleanSpecifies whether to display the custom detail to an agent in the chat notifications and Details tab (true) or not (false).Available in API versions 29.0 and later.

You only need to specify details for which display equals false. The method will not display details for which display equals false. If you don’t specify the value of the display parameter, the default value is set to true.