form with a drop down field that is required | Community
Skip to main content
New Participant
February 7, 2022
Solved

form with a drop down field that is required

  • February 7, 2022
  • 1 reply
  • 5161 views

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

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

 

1 reply

SanfordWhiteman
New Participant
February 7, 2022
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.
MarkCr6Author
New Participant
February 7, 2022

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.

SanfordWhiteman
New Participant
February 7, 2022
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.