? J4 Issue
avatar AndonZeno
AndonZeno
7 Apr 2021

Hello, Is there any way I can limit the min and max date selection on the calendar control field ? I need to limit it in a max selection of 6 months from today date but couldnt find any info regarding it. Any help would be appreciated. Thanks

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar AndonZeno AndonZeno - open - 7 Apr 2021
avatar AndonZeno
AndonZeno - comment - 7 Apr 2021

Range selection in a date range picker can be made-to-order with desire restrictions based on the application needs.
We can set by using starting date and ending date .

Is there any link to doc for this? I cant find it anywhere

avatar AndonZeno
AndonZeno - comment - 7 Apr 2021

The only solution I could find for now is using the minYear and maxYear attributes. But it doesnt seem to solve the issue as I need to put a more restricted limit, and not limit it to a specific year.

avatar ReLater
ReLater - comment - 7 Apr 2021

Is there any link to doc for this? I cant find it anywhere

There's no doc for your issue (https://docs.joomla.org/Calendar_form_field_type). I think shub1711 is just a troll.

The only solution I could find for now is using the minYear and maxYear attributes

You are right. There is no other setting in Joomla 3 or Joomla 4 (as far as I see after code investigations). You can try to make a feature request out of this issue for Joomla 4.

Joomla 3 doesn't accept new features.

avatar AndonZeno
AndonZeno - comment - 7 Apr 2021

You are right. There is no other setting in Joomla 3 or Joomla 4 (as far as I see after code investigations). You can try to make a feature request out of this issue for Joomla 4.

Joomla 3 doesn't accept new features.

Thanks, I saw there has been a PR a few years ago to add dateStart and dateEnd but it looks like those never got implemented

avatar rs4231199
rs4231199 - comment - 7 Apr 2021

@AndonZeno Can you share the link to the PR?

avatar AndonZeno
AndonZeno - comment - 7 Apr 2021
avatar rs4231199
rs4231199 - comment - 7 Apr 2021

So, the PR was closed because the author never responded. I am working on this now.

update: I am no longer working on it.

avatar brianteeman
brianteeman - comment - 23 Aug 2022

Can someone please add the J4 Issue and Feature Request labels please

avatar zero-24 zero-24 - change - 23 Aug 2022
Labels Added: ? J4 Issue
avatar zero-24 zero-24 - labeled - 23 Aug 2022
avatar zero-24 zero-24 - labeled - 23 Aug 2022
avatar jjnxpct
jjnxpct - comment - 18 Jan 2023

I was looking for this option/feature for one of our J4 websites. I think this has not been added yet? Is there anyone who can add the min and max date attributes to the calendar field? I would do it myself if I could, but unfortunately don't know how.

avatar antonzeno
antonzeno - comment - 23 Sep 2023

I was looking for this option/feature for one of our J4 websites. I think this has not been added yet? Is there anyone who can add the min and max date attributes to the calendar field? I would do it myself if I could, but unfortunately don't know how.

Im working on it will do a PR soon

Add a Comment

Login with GitHub to post a comment