Calendar date picker > disable next/previous year arrows

Home Forums Quform WordPress Calendar date picker > disable next/previous year arrows

This topic is: resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #27150
    katw
    Participant

    Hi 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.
    #27174
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #27192
    katw
    Participant

    Hi 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.

    #27194
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #27196
    katw
    Participant

    Super thanks for clarifying.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy