Home › Forums › Quform WordPress › Calendar date picker > disable next/previous year arrows
- This topic has 4 replies, 2 voices, and was last updated 6 years, 5 months ago by
katw.
- AuthorPosts
- October 11, 2018 at 9:29 am #27150
katw
ParticipantHi Ally,
I have a date field which is set to:
- Min date: 2018-02-01
- Max date: {today}
- Date format (JS): MMMM yyyy
- Date format (PHP): M Y
The datepicker view is months of the year and the view depth is also months of the year.
The date auto-shows on click and is operating correctly.
The issue is the display of the NEXT YEAR and PREVIOUS YEAR arrows which are invalid for the minimum and maximum range defined.
Any ideas on how to get these arrows to hide/show according to the MIN/MAX range set?
Thanks
Kat
Attachments:
You must be logged in to view attached files.October 12, 2018 at 5:19 pm #27174Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
October 14, 2018 at 11:47 pm #27192katw
ParticipantHi Ally,
Does the date picker know about the range Min and Max set in field settings?
As the need to hide and show the arrow is based on what is {today’s date}.
Next year it will be valid to show a previous year arrow.
And a next year arrow will also be valid next year when the user pages backwards.
So hiding it without programming logic embedded will be a short term fix.
October 15, 2018 at 9:11 am #27194Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
October 15, 2018 at 9:50 am #27196katw
ParticipantSuper thanks for clarifying.
- AuthorPosts
- You must be logged in to reply to this topic.