Nested Pop-Ups (Show Pop-Up On CTA Click)

How to: Set Up a Promotion With a CTA Button To Show a Second Promo Without Closing The First (e.g. Terms of Service)

 


Step 1: Setup a promotion that has a CTA button and input a value into the Data-ID field: in this case the value is 'terms_cta'

1.png

 

 


Step 2: Setup a second promotion to your specifications that has the information you want to show via the CTA button click that was set up in the first promotion.

2.png 

 


Step 3: Pull the promotion ID (also denoted as cmidfrom the promotion management view and navigate to the design canvas interface for the promotion that contains the CTA layer. Input the following code snippet into the Pop Up JS tab within the Custom Code section, change 'cmid' (in the code snippet) to the ID of the second promotion (in this case 314797) and toggle it ON

$(document).on('click','[data-id="terms_cta"]',function(){
open_promo(cmid,true);
});

 

 

 

 


Tags: Nested Promo, Terms of Service, Message, Messaging

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.