Restricting a date picker to a specific date in the past and/or future

I am looking for a way to restrict date pickers to specific dates in the past and future.

Min date = enter a date on or after 01.04.2025

Max date = enter a date of 31.03.2026 or earlier

I would be looking to prevent the user from continuing if they select dates outside of these parameters.

What is the best way to achieve this?

You could maybe use a “validator” code studio component against the date field to perform some custom action.

I mean basically its for returning a true / false to determine whether the field value entered is suitable. The field can display an error message if the date doesn’t match your requirements. You dont have a lot of choice here other than pass / fail and the error message displayed.

If you want to apply specific “configurable” restrictions, then a presenter or even a widget is probably the way to go.

This way you at least have more control over the displaying of error messages and setup of specific restrictions you may need. It’s more complicated (in component terms) but will give you more control over what the users will see and the functionality you can provide in the UI.