Is it possible to create a picklist field token to be used in a web form? | Community
Skip to main content
New Participant
October 19, 2016
Solved

Is it possible to create a picklist field token to be used in a web form?

  • October 19, 2016
  • 1 reply
  • 4016 views

Hello Everyone!

Question:

Is it possible to create a picklist field token to be used in a web form?  Has anyone done this?

Background:

We are looking to do this with our Industry and Sub-Industry fields.  We would like them to be required on the forms as well as make Sub-Industry hidden until the Industry is selected. 

Thank you in advance!

Best answer by SanfordWhiteman

Be sure to post your questions to Products. A mod just moved your thread today.

This type of token does not technically exist. However, you can create a text token like {{my.Industry}} and populate it with a JSON array of possible entries:

     ["Education","Engineering","Pharma"]

Then include this token in your LP (it has to be a Marketo-hosted LP), use the Forms API to populate the <SELECT> options when a form loads. You need a developer who gets this stuff.

It's a good way to keep your picklists centralized, though using the smallest possible # of global forms is even more important (and similarly gives you a small surface area to cover when updating picklists).

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
October 23, 2016

Be sure to post your questions to Products. A mod just moved your thread today.

This type of token does not technically exist. However, you can create a text token like {{my.Industry}} and populate it with a JSON array of possible entries:

     ["Education","Engineering","Pharma"]

Then include this token in your LP (it has to be a Marketo-hosted LP), use the Forms API to populate the <SELECT> options when a form loads. You need a developer who gets this stuff.

It's a good way to keep your picklists centralized, though using the smallest possible # of global forms is even more important (and similarly gives you a small surface area to cover when updating picklists).

New Participant
October 24, 2016

Thank you Sanford!