Skip to main content
Level 3
Jun 18, 2024 1:57 PM UTC
Solved

Hidden Form Field value is not populating

Hi There,

 

We have a Marketo form with a hidden field and a default value set. However, upon submission, the default value does not populate on the record. What could be the reason? Please let us know

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 18, 2024 4:43 PM UTC

OK, checked it out and this isn’t a Marketo issue, it’s in your custom code.

 

Marketo is correctly setting the default value for the hidden field Country (that is, “India”).

 

But then when someone fills in the Email field, you’re invoking ZoomInfo’s FormComplete JS, which is trying to guess/enrich the Country itself. If it it doesn’t succeed, it blanks out Country rather than leaving the original value. You need to change that logic.

8 replies

ktronolone
Level 3
Jun 18, 2024 3:26 PM UTC

Can you please share a screenshot of how you are setting the default value? It might help to see a visual and understand the data type. 

Translate
NihalAuthor
Level 3
Jun 18, 2024 3:47 PM UTC

Here is the screenshot of the field details.

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Jun 18, 2024 3:51 PM UTC

That screenshot isn't showing the Autofill details.

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Jun 18, 2024 3:47 PM UTC

Please provide the URL of your page so we can look at it live. There's no need to hypothesize!

Translate
NihalAuthor
Level 3
Jun 18, 2024 3:50 PM UTC

It's not a marketo landing page: https://www.qualys.com/lp/tp1/ciso-risk-dialogue/ 

Please let us know if we have missed any details in the backend.

Translate
SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Jun 18, 2024 4:43 PM UTC

OK, checked it out and this isn’t a Marketo issue, it’s in your custom code.

 

Marketo is correctly setting the default value for the hidden field Country (that is, “India”).

 

But then when someone fills in the Email field, you’re invoking ZoomInfo’s FormComplete JS, which is trying to guess/enrich the Country itself. If it it doesn’t succeed, it blanks out Country rather than leaving the original value. You need to change that logic.

Translate