Skip to main content
Level 2
Jun 12, 2023 7:51 PM UTC
Solved

Can you build a dynamic drop down field on a marketo form with a custom hidden field?

My team is planning to experiment with our contact us form on our website. We are looking to dynamically update the drop-down options based on a person's account type. For example, if it's a person on our free plan we want the drop-down to talk about upgrades vs. support/talking to sales. 

I originally thought I could add our custom personal account type field has a hidden value on the form, but that doesn't seem to be working and what I'm seeing online is the order of events would be a field before the drop down that gets completed beforehand. Is there any other way I could accomplish this? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Jun 12, 2023 11:54 PM UTC

Think you mean “custom field”, not “custom activity”; I edited the title of your post accordingly.

 

There’s no reason you can’t use a hidden field to create a Visibility Rule. (I assume that’s what you already tried, though you weren’t clear.)

 

But for this to work, the field needs to be pre-filled, which means they need to either:

  • have already visited your site and filled out a Marketo form[1]
  • have clicked a tracked link in a Marketo email to get to your page

 

[1] which also requires my custom pre-fill JS

3 replies

SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Jun 12, 2023 11:54 PM UTC

Think you mean “custom field”, not “custom activity”; I edited the title of your post accordingly.

 

There’s no reason you can’t use a hidden field to create a Visibility Rule. (I assume that’s what you already tried, though you weren’t clear.)

 

But for this to work, the field needs to be pre-filled, which means they need to either:

  • have already visited your site and filled out a Marketo form[1]
  • have clicked a tracked link in a Marketo email to get to your page

 

[1] which also requires my custom pre-fill JS

Translate
Level 2
Jun 14, 2023 4:46 PM UTC

We decided to execute this in vwo, but I'm still interested in learning how to accomplish this in Marketo.

 

When you change it to a hidden field on the form you lose the Visibility Rule functionality, so how exactly would you accomplish that? Also can you link the custom pre-fill JS...

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Jun 14, 2023 5:08 PM UTC

When you change it to a hidden field on the form you lose the Visibility Rule functionality, so how exactly would you accomplish that?

A Hidden field can still trigger Visibility Rules for other fields. It can’t be the target of Visibility Rules, of course, since it’s always hidden.

 


Also can you link the custom pre-fill JS...

The pre-fill JS is here.

Translate