Jump to content

Disable Specific Dates in Form Field

Recommended Posts

Site URL: https://viridianbar.com/cakeshop/holidaycakes

Does anyone have a solution for disabling specific dates when using the date field in a form?

For example, when someone purchases a cake from my website, a form opens up, and they type in the date they would like to pick up their cake. At the moment, they can type in any date, but would it be possible to disable certain dates such as days the shop is not open (Mondays and Tuesdays) and holidays (Christmas, Thanksgiving, New Year's Day, etc.)? This would be incredibly helpful! I saw the DatePicker on SF Digital, but I think it's a little pricey for what I need since I don't necessarily need a calendar to pop-up as my customers are all local, so the current date format is not confusing for them. 

Thank you so much for any help you can provide! 

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You could disable individual dates but customers will have a poor user experience if they are required to type them in and then find out the date is unavailable and must change it again.  In contrast, a datepicker will show which dates are available and which aren’t, so that customers can only select a valid date. 

I hope this helps. 

Edited by paul2009

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
Catch up on all the release notes and announcements 2023 [for Circle members only] (there's a public version here)

Buy me a coffee

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.