Hidden Form Field value is not populating | Community
Skip to main content
New Participant
June 18, 2024
Solved

Hidden Form Field value is not populating

  • June 18, 2024
  • 2 replies
  • 3886 views

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.
Best answer by SanfordWhiteman

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.

2 replies

SanfordWhiteman
New Participant
June 18, 2024

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

NihalAuthor
New Participant
June 18, 2024

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.

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
June 18, 2024

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.

ktronolone
New Participant
June 18, 2024

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. 

NihalAuthor
New Participant
June 18, 2024

Here is the screenshot of the field details.

SanfordWhiteman
New Participant
June 18, 2024

That screenshot isn't showing the Autofill details.