Skip to main content
July 23, 2015
Question

Cap event attendees with form logic?

  • July 23, 2015
  • 4 replies
  • 4106 views

Hello Marketo community,

I have a request for an event registration to cap the number of registrants to 15. Has anyone achieved this with logic in the form? Right now we are using an accept / deny approach with pending approval and changing the status by hand. I would like to be able to have a landing page populate that says "sorry event registration is full" once 15 registrants have filled out the form.

any help would be great! Julenne King-Concension

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

July 23, 2015

Unfortunately not at this time. There may be a way with custom HTML/CSS, but nothing that I know of.

Elliott_Lowe1
Level 7
July 24, 2015

The only way to achieve this is to set up a smart campaign that will send you an alert when you reach your registration goal and then you manually change the registration LP.

SanfordWhiteman
Level 10
July 24, 2015

Actually, this is possible (I know my "can do" attitude can be tiresome, but I can't stop now!).

There are a couple of different mechanisms, but a common entry point is creating a new "resource lead" to manage the event. For those familiar with Microsoft Exchange, it's directly comparable to a "resource mailbox," which represents a bookable resource like a conference room, projector, etc.

You update a counter on the resource lead whenever there's a form fillout (using a webhook) then before you draw the form, you check to see the current number of attendees by querying that lead.  If the cap is exceeded you don't draw the form.  Doing this in a safe and scalable fashion involves some JavaScript secret sauce, but nothing outside beyond Marketo's built-in functionality.  Note that because there aren't really any locks on the server, it's possible for someone to get the 16th form before the webhook finishes logging that you've got 15.  So you should still say something like, "Your registration is being processed." and send confirmation to cover any leaks.

Another path to take, also using the resource lead concept and a webhook, is updating a snippet using the REST API.  You can probably see where I'm going with that.

July 27, 2015

Hi Sanford,

Thanks - would you be able to talk to me more about this? I'm not 100% sure where to start. Let me know - thanks!

Kara

SanfordWhiteman
Level 10
July 27, 2015

If you follow me back, we could DM about it or set up a call (better to get away from my keyboard for awhile).  Also, as you appear to be in NYC, I'm giving a talk about Marketo tech topics at the next user group meeting.  ​You should join the MUG and come to the session!  (Sign up here​.)

February 18, 2016

Hi Kara,

This post on Linkedin provides another alternative.

Marketo Magic: Automatically Cap Registrations For Any Marketo Form. Part - I | Rajesh Talele | LinkedIn

Rajesh