1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

Trouble having a simple date picker with only Month / Year

Discussion in 'Community' started by AlexTCGPro, Dec 1, 2020.

  1. AlexTCGPro

    AlexTCGPro Member

    Level: Community
    I'm in need of a date picker, but instead of picking a full date I just want users to choose only month and year.
    Both elements 'date' and 'jdate' need fulldate or else the site will be loaded with javascript errors as they cannot validate.

    I need to do some calculations via php, my idea was to simply use jdate and calc elements, but that won't do, is there a simple way to accomplish this? I know I can work around my date picker with a calc element and a hidden field element, but that's so obnoxious. Is there another element I can use?

    I tried doing my calculations from scratch without using fabrik but Joomla is really weird at handling ajax so I was not able to pass the value from my input to php.
  2. lousyfool

    lousyfool Active Member

    Level: Community
    Can't you just use two dropdowns, one for month and the other for year?
    Or, if it's for only a limited range, even only a single dropdown with month and year?
  3. troester

    troester Well-Known Member Staff Member

    Level: Community
    Or the birthday element.

Share This Page