- Posts: 237
- Thank you received: 5
Restrict Date picker to specific date range
6 years 3 months ago #320623
by ltempest
Restrict Date picker to specific date range was created by ltempest
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.19
Hello,
I'm using the Date Picker plugin to sell passes for entry. The location is only open for a set period of time between June - August. Is it possible to restrict the Date Picker to ONLY show a date range between a start and end date I can specify int he backend or by adding code somewhere?
Thanks
Lee
-- Joomla version -- : 3.9.19
Hello,
I'm using the Date Picker plugin to sell passes for entry. The location is only open for a set period of time between June - August. Is it possible to restrict the Date Picker to ONLY show a date range between a start and end date I can specify int he backend or by adding code somewhere?
Thanks
Lee
Please Log in or Create an account to join the conversation.
6 years 3 months ago #320625
by nicolas
Replied by nicolas on topic Restrict Date picker to specific date range
Hi,
You can't enter a range of dates. However, you can:
- use the "start" and "end" input fields of the "year selector" setting of the date picker custom field to limit the selection of the dates to the current year (if that's a requirement)
- use the "exclude dates" textarea to enter the list of dates you don't want to be selectable. And you can specify only the day of the month and the month (not the year) in the dates of that field so it will also apply to all the years, avoiding having to enter the dates for every year in the future.
You can't enter a range of dates. However, you can:
- use the "start" and "end" input fields of the "year selector" setting of the date picker custom field to limit the selection of the dates to the current year (if that's a requirement)
- use the "exclude dates" textarea to enter the list of dates you don't want to be selectable. And you can specify only the day of the month and the month (not the year) in the dates of that field so it will also apply to all the years, avoiding having to enter the dates for every year in the future.
Please Log in or Create an account to join the conversation.
Time to create page: 0.175 seconds