SOLVED

form with a drop down field that is required

Go to solution
mrkcrne
Level 2

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?

1 ACCEPTED SOLUTION
Jo_Pitts1
Level 10 - Community Advisor

@mrkcrne ,

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.  

Jo_Pitts1_0-1644280636550.png

 

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.

Jo_Pitts1_0-1644281077391.png

 

When I tried to submit the form I got this error

Jo_Pitts1_1-1644281098784.png

 

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

 

View solution in original post

13 REPLIES 13