Umbraco integration

Send2CRM client script

The client script can be added to Umbraco via Settings > Scripts. Include the main snippet and any client-side config to a separate file, then add the file to the <head> of the main template.

<script src="/scripts/send2crm.js"></script>

Form selection

For simple forms integration, we recommend adjusting the client config to allow the forms to be individually selected by CSS class.

window.addEventListener('send2crmLoading', (evt) => { send2crm.applySettings({ formSelector: '.send2crm-form form', }); });

Each form can be individually selected for Send2CRM handling by adding the chosen CSS class under Styling.

Form identifiers

Umbraco forms do not include an id attribute. The action attribute may be enough to uniquely identify each form; if not, use a condition to match the hidden UniqueID field value.