Jump to content

Disable Specific Dates in Form Field

Recommended Posts

Posted

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! 

  • Replies 1
  • Views 972
  • Created
  • Last Reply
Posted

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. 

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.