How to get a segment lead count (segment size) as a variable (token) to use with a form or landing page? | Community
Skip to main content
alexshel
New Participant
April 21, 2016
Question

How to get a segment lead count (segment size) as a variable (token) to use with a form or landing page?

  • April 21, 2016
  • 3 replies
  • 4698 views

Is there any way to pull a segment lead count (segment size) into Marketo form hidden field as a token ?

So then we could use it in Javascript to determine how many people have filled out the form.

That's for an event registration purpose where number of participants is limited. As soon as a segment count reaches this number we could make the submit button inactive and show a message saying "registration closed".

3 replies

Jerry_Cooper1
New Participant
July 12, 2020

Alex,

Did you ever find a way to get the count of a segment and move it to a vaiable like a Marketo token to be displayed on a landing page?

I have the exact same problem now?

Jerry Cooper
alexshel
alexshelAuthor
New Participant
April 26, 2016

Any advice from Marketo team at all ?

Is there any way to pull a Lead Database Partition - Segmentation -  Segment lead count (segment size) into Marketo form hidden field as a token ?

April 21, 2016

Hi Alex,

I think you mean to find 'number of leads in a smartlist'. I do not think there is a API call to get this information. You might be able to do it in a round about way by using a 'membership' list to store the people who filled out a form. There are API calls to get members in a list.

Using such API call in javascript poses some issues though. Especially regarding your API key security and also potentially exceeding daily API call limits if you get too many page visits.

If you are looking to get this done for event registration form capping purpose, you might find this blog post helpful. Using a webhook might be a better alternative.

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

Hope this helps.

Rajesh

alexshel
alexshelAuthor
New Participant
April 21, 2016

I am not talking about a smartlist. I am talking about Lead Database Segmentation Segment.

There are many different events leads will be registering for. Depending on what event each lead is registered for I am using a Segmentation to personalise emails (using dynamic Subject and dynamic Body) for Nurture campaign for each event.

This cannot be done with smartlists I assume.

April 21, 2016

I see. So you have 2 business needs.

1> Personalize email for nurture campaign for each event.

2> Automatically disable submit button if the event is full.

Rajesh