- V3 Knowledge Base
- Internal Knowledge Base
- Custom Code
Firing a third party modal from a click engagement
We will cover what Javascript to use to fire a modal based on a click on a Justuno promotion.
Last update: 12/14/2021
Instructions
Access the Pop Up JS in the design canvas for your promotion. You will find this within the Custom Code option.
On the Pop Up JS tab, paste in the following code:
jju(function () {
jju('.design-layer[data-layername="CTA"]').click(function () {
top.window.showINSERTMYMODAL();
});
});
$(document).on('click','[data-id="close"]',function(){
close_window();
},1500);
});
Enable "Override Default JS", save, and publish.
Visit Justuno @justuno.com