-
Re: Can you make selector item non selectable in drop-down list?
Grégoire Michel Apr 11, 2017 6:59 AM (in response to Leanne Persang)Hi Leanne,
This can be done with some JS that will check the event is full and deactivate the value. It will require to pass the info to the page, though, which is not that easy. The most reliable way of doing it is through a webservice platform that can 1/ track the number of registrants and 2/ be called by the form when it's loading and notify the form to deactivate some values.
If you want to change the numbering dynamically, you will also need some JS.
-Greg
-
Re: Can you make selector item non selectable in drop-down list?
Leanne Persang Apr 11, 2017 7:00 AM (in response to Grégoire Michel)Ah, I thought it would (but was hoping it wouldn't, ha) require JS. It would be nice if in the Marketo selector editor there was an option to check to deactivate an item from the list.
-
Re: Can you make selector item non selectable in drop-down list?
Sanford Whiteman Apr 11, 2017 8:51 AM (in response to Leanne Persang)3 of 3 people found this helpfulDisabling the <OPTION> in the dropdown and counting registrants are actually two different concerns. Related, to be sure -- but even if the second is automated the first still requires that the forms behaviors be enhanced.
You don't have to write the JavaScript, though, since I just did for you.
Just change the Display Value in Form Editor:
Then include the tiny bit of JS demoed here:
-
Re: Can you make selector item non selectable in drop-down list?
Grégoire Michel Apr 11, 2017 8:41 AM (in response to Sanford Whiteman)This one is really cool !
-Greg
-
-
-
-
Re: Can you make selector item non selectable in drop-down list?
Rajesh Talele Apr 11, 2017 8:16 AM (in response to Leanne Persang)Thanks, Greg,
Leanne, the following article shows somewhat similar functionality implemented on a Marketo landing page.
This allows to actually 'disable' the registration form? or display 'real time ' message on the registration page when the registration is full?
You might be able to use a version of this setup for your requirements.
Hope this helps...
Rajesh Talele
-
Re: Can you make selector item non selectable in drop-down list?
Diederik Martens Apr 11, 2017 10:16 AM (in response to Leanne Persang)Thank you for the mention Greg! Both Rajesh and Sanford provided great solutions!
Though I would NOT disable registration. You still want the opportunity to capture someone's details. For this purpose I always automatically put registrants in the status "Pending Approval" and send them a temporary email stating an employee would get in contact to verify if there were still seats remaining. Then have a workflow that automatically sends an email (sorry,... or we hereby confirm...), based on the program status being manually updated to Registered or Rejected or WaitListed. This also provides some control on who will attend your event. Do make sure to write the Rejection email text well ;-)
Alternatively you could auto-reject or auto-confirm (and have the correct email send) based on the amount of leads on the static list people are added to on confirm. You would need to call a webhook to a custom script to determine the amount of leads on the registrants list. That script would need the REST API to connect to Marketo and then use the ListController to determine how many leads were on the list: http://developers.marketo.com/rest-api/endpoint-reference/lead-database-endpoint-reference/#!/Static_Lists/getLeadsByListIdUsingGET_1
Or check for program membership of course.
-
Re: Can you make selector item non selectable in drop-down list?
Sanford Whiteman Apr 11, 2017 10:29 AM (in response to Diederik Martens)Well, if you don't disable or mention sold-out events even though there are other available slots, you're just inviting oversold events. You can flag non-oversold events instead of disabling them, but not mentioning it makes little sense.
Would never use REST API calls on response to public traffic. Recipe for catastrophe!
-