Forms Date and Time Limits - ucsf-ckm/ucsf-library-ux-and-web-documentation GitHub Wiki
With the WPForms plugin
Forms now allow some limits to be set under Field Options for the Date/Time field.
- limits the days of the week that can be selected
- can disable choosing a past date
NOTE
If more control is needed than the plugin can supply, then all functionality should be done in the script. The two approaches cannot work together as of Dec. 2020.
Script required
However, to impose additional constraints like these still requires a script saved under Dashboard > Snippets
- available dates must be at least 2 business days from the request submission date
- available dates must be less than 3 weeks from the request submission date
The content of the script is guided by documentation for the WPForms plugin.