Question about disabling weekends/US holidays in Date Picker #4344
-
Hey Paste team! 👋 We’re using the Date Picker component in our Create Port-In Request workflow, and we’ve run into a bit of a UX challenge. Users are currently able to select weekends (and potentially US holidays), but those dates aren’t valid for our process. This leads to a frustrating experience where the user picks a date, only to be shown a validation error after the fact. Does anyone on the team know if there’s a recommended way—or maybe a custom script—to disable weekends and US holidays directly in the Date Picker? It would be a big help to proactively prevent invalid selections. Appreciate any guidance! 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. Sorry, I don't know how to help with that. I did do a search though, and I managed to find these other Discussions that might be similar or related to your question. Give them a read to see if they answer your question. If they do, head back here and update this discussion and mark it as answered, pointing others to the related discussion:
|
Beta Was this translation helpful? Give feedback.
-
Hi @dfcontreras10! I'm Dosu and I’m helping the paste team. The Paste Date Picker is a minimal wrapper around the native HTML To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
Hi @dfcontreras10, unfortunately this is not supported. We provide a styled HTML5 date input and the ability to disable certain dates is not currently implemented. You will only be able to set a min-max date range. |
Beta Was this translation helpful? Give feedback.
Hi @dfcontreras10, unfortunately this is not supported. We provide a styled HTML5 date input and the ability to disable certain dates is not currently implemented. You will only be able to set a min-max date range.