NAV
javascript

.setChatFormPosition()

// Set the legacy chatbox to pop up in the 'tl' (top left)
// corner of the browser window
var position = 'tl';
SnapEngage.setChatFormPosition(position);

Deprecated. This API method is not supported in the Design Studio. Design Studio users may change the position of the chat form by going to Chat Box -> Global Box Settings -> In-page Popup. (If you are a legacy Style tab user, this API is still supported).

Manually set the position where you would like the chat window to appear. (Will not reposition an already-visible chat box.)

This option can also be easily set in the legacy Style tab of the Admin Dashboard without the need for an API call. But you can use this function if you need to reposition the chat box in a special circumstance.

Parameters

Parameter Type Description
position String A string representing the desired position of the legacy chat window. Requires specific values that are case-sensitive, see the table below of "Parameter Values".

Parameter Values

Position Value
Bottom Right 'br'
Bottom Left 'bl'
Top Right 'tr'
Top Left 'tl'
Center 'c'