Campaign Entities

Custom JS actions allow your organization to execute javaScript when a button or link is clicked in a privacy manager, first layer message, or custom message. This functionality provides you with increased flexibility to insert your own logic into messages created within the Sourcepoint portal and solve your particular use cases.

  Note: Your custom javaScript will be executed in the parent window where the wrapperMessagingWithoutDetection.js runs. Be advised that you may run into issues if your organization has a content security policy not allowing reverse injection.

From the builder for a privacy manager, first layer message, or custom message, a custom JS action can be added by:

Button Inline text

Select the button component in the builder and navigate to the Settings panel on the left-hand rail. Expand the Action accordion.

Screenshot 2023-09-20 at 1.13.29 PM.png

Select Custom JS from the dropdown menu and add your javaScript into the provided space.

Screenshot 2023-09-20 at 1.17.23 PM.png

Click Save Message when finished. 

Was this article helpful?
0 out of 0 found this helpful



Please sign in to leave a comment.