Jump to content

Form field select customization - how to require user to make a dropdown selection?

Go to solution Solved by paul2009,

Recommended Posts

Site URL: https://grtv1.squarespace.com/

Hi everyone,

I was wondering if anyone could help with some custom CSS (or any other more obvious solution that I have missed) where a website user filling out a form is required to make a selection from a dropdown. Yes, I know about the form field settings and I have certain fields toggled to "required".... however, the SS form just shows up with the first option in the select list already selected. So basically, a user could breeze through the form without actually making intentional selections, and just submit what is there by default. 

 

In the dropdown fields for Purchaser type, Contact Preference, Desired Suite type, and Where did you hear about us?, I would like for those fields to be empty, or unselected, as a default, rather than showing the first option in the list. 

I hope I'm explaining my question clearly. Screenshot below. And the site is at:

https://grtv1.squarespace.com/

PW is GRT

image.thumb.png.923de6e7e57c1b122e0801735bda9588.png

 

Link to comment
  • Replies 2
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution
27 minutes ago, CDM-media said:

I was wondering if anyone could help with some custom CSS (or any other more obvious solution that I have missed) where a website user filling out a form is required to make a selection from a dropdown.

You should be able to prevent the user submitting the form if they do not select a valid option from the dropdown. To do this, add a blank first option to the dropdown (delete all text until 'Option' is shown) and ensure the dropdown is set to Required.

image.png.e7cadd61007f022c2bc35989ad50450a.png

The empty field should be rejected when the user tries to submit the form:

image.gif.029e5be94ab99d06c2f1c1c4c9ce23fb.gif

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.