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 704
  • 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

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

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.