SOLVED

Cancel registration when a number is reached

Go to solution
Endrit
Level 1

Cancel registration when a number is reached

Hi,

 

Does anyone now how to deactivate a registration page once it reaches the required number?

 

Thanks,

1 ACCEPTED SOLUTION

Accepted Solutions
Michael_Florin
Level 10

Re: Cancel registration when a number is reached

I assume, you mean "automatically", right?

 

That doesn't work with Marketo natively. There was something like an "Event Cap" probably in Marketo Sky, but to be honest, I'm not sure it ever existed. But what you can certainly do is use a tool like https://flowboo.st/ to count registrations, and once a threshold is reached, react on it. Requires some development skills though.

View solution in original post

3 REPLIES 3
uditmathur
Level 7 - Community Advisor

Re: Cancel registration when a number is reached

Hi,

I assume you are referring to Marketo Registration Landing page.

You can just unapprove the registration landing page details can be found here .

I will suggest the better option will be to create a new Registration Closed Landing page & redirect the registration CTA to point to this new LP url. 

Hope this helps.

Michael_Florin
Level 10

Re: Cancel registration when a number is reached

I assume, you mean "automatically", right?

 

That doesn't work with Marketo natively. There was something like an "Event Cap" probably in Marketo Sky, but to be honest, I'm not sure it ever existed. But what you can certainly do is use a tool like https://flowboo.st/ to count registrations, and once a threshold is reached, react on it. Requires some development skills though.

SanfordWhiteman
Level 10 - Community Moderator

Re: Cancel registration when a number is reached

Yep, on the browser side you can redirect if the event is full:

fetch(`https://api.teknkl.com/fbcounter/v2/counter/count/event/program/{{Program.Id}}`,
   {
     headers : {
       "X-Api-Key" : "pub:648y91ngydm52q1s8tqve8fy"
     }
   })
   .then( currentJ => currentJ.json() )
   .then( current => {
     if( current.count > 100 ) {
       /* 
         whatever you wanna do, like 
         document.location.href = "https://pages.example.com/event-full.html";
       */    
     }
   });

 

The call to check the counter will be near-instantaneous, but you might want to hide the form until you know whether the event is full, so the person doesn’t see a quick blink of the form before being redirected.