Skip to main content
Level 2
Feb 7, 2022 5:12 PM UTC
Solved

form with a drop down field that is required

I'm new to Marketo and my form that has a drop down can be submitted without the drop down being selected by a user. We currently have "Select" as the default value, so I assume that is why it is allowing the submission, so is there a way around this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Jo_Pitts1
Jo_Pitts1Accepted solution
Community Advisor
Feb 8, 2022 12:40 AM UTC

OK, so how would I go about putting a hint in a drop down or somehow saying that "Select" isn't a valid selection and make the user select something else?


@markcr6 ,

ultimately, if you have no value in the 'select' option, Marketo will display an error anyway when someone moves through the field, or tries to submit the form.

 

To make that work, you need to get rid of the value in the red box.  

 

If you placed your form (configured as you showed it in the screen shot of your drop down options) on a test landing page, this would happen natively, as you've got no entry for the stored value.

 

To prove this, I inspected the form elements and altered the select option for industry.

 

When I tried to submit the form I got this error

 

Talk to your dev team about WHY what they are doing is adding in the value="select" instead of leaving as value="", and could they please stop.

Cheers

Jo

 

13 replies

SanfordWhiteman
User Group Leader
User Group Leader
Feb 7, 2022 6:00 PM UTC
You have to mark the field as Required in Form Editor.

The "Select..." with an empty server value is not a valid selection if it's Required.
Translate
MarkCr6Author
Level 2
Feb 7, 2022 6:22 PM UTC

Thanks, I have the filed marked as required and this is how the choices are set up. But it isn't working as I can submit this field without selecting a drop down value.

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Feb 7, 2022 6:49 PM UTC
That’s not expected behavior. You’ll need to provide a link to your page to troubleshoot further. Required means the server value can’t be empty.
Translate