Automattic / Automattic/jetpack

Option to block out past dates in the date picker block

Open
#38,777 1 comment 0 reactions 0 assignees View on GitHub
[Block] Form [Feature] Forms [Feature] Forms Blocks [Plugin] Jetpack [Pri] Low Enhancement Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 14h
Merged PRs (30d)
790

Description

### Impacted plugin

Jetpack

### What

Option to block out past dates in the date picker

### How

Hello! We're using Jetpack for the forms on our site. The one form, in particular, is used for booking requests, and it would be amazing UI if we could have it grey out past dates when selecting a date in the `date picker` block.

While I recognise this isn't what everyone would want on a form, could we look into a block setting where we say something like "past dates are not selectable"?

Frontend:
Screenshot 2024-08-08 at 10 59 01

Backend:
Screenshot 2024-08-08 at 10 59 54

Thank you so much!

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Start by locating the Jetpack date picker block and its existing block settings, then trace how the selected date is handled in the editor and frontend. Done means an optional setting prevents past dates from being selected while preserving the current behavior when disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
wordpress
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.