Applying settings
Settings are applied to the messaging client via dataset attributes on the custom element. For example to change the stylesheet:
<send2crm-messaging data-stylesheet="/my_styles.css" />
Settings may also be changed via script after loading. This will cause the messaging element to re-render.
document.querySelector('send2crm-messaging').dataset.stylesheet = 'my_other_styles.css';
Available settings
Name | Default | Description |
---|---|---|
heading | Leave a message | Displayed at the top of the expanded UI. |
stylesheet | (script root)/send2crm-messager.min.css | Applied within the shadow DOM of the messaging element. |
senderror | Failed to send message. | Tooltip/title displayed on input when a message send fails. |
maxdays | 60 | Number of days previous messages to display. |
rapidfreq | 15 | Number of seconds between rapid visitor updates during active messaging. |
rapidcount | 4 | Number of rapid visitor updates to make before falling back to standard visitor update frequency, unless further messaging activity occurs. |