CF5 Datepicker hide days (

How to restrict a ChronoForms datepicker to show only year and month selection.

Overview

The CF5 datepicker element does not currently support hiding the day selection interface.
Use a standard text field with an input mask for month/year entry, or implement the jQuery UI datepicker as an alternative for more control.

Answered
mo monochrome 27 Aug, 2014
Hi,

i want to restrict the JQuery Datepicker to display only Year and months:

Regarding to this information https://www.chronoengine.com/faqs/70-cfv5/5216-date-control-using-cfv5-date-picker-element.html i already managed it to adapt the Datepicker through the Extra params field:


data-start_view=y
data-start_date=<?php echo date("d.m.Y"); ?>


Now i tried to achieve my goal by using the minViewMode setting ( Restrict the picker from selecting days)
by using http://bootstrap-datepicker.readthedocs.org/en/latest/options.html#format as reference

data-min_view_mode=months


But it didn´t work ...


1. Is there a Link which describe all settings which can be used im the Extra params for the CF5 Date Picker field?
2. How can i achieve to display only month & year on the datepicker?

Any hint ord infomration would be great!

Thanks for your help,
Thorsten
Max_admin Max_admin 17 Sep, 2014
Answer
1 Likes
Hi Thorsten,

Apologies for the delay!

The settings in the 2nd link are not related to the datepicker used in CFv5 which is developed by me.

There is no way to restrict the display to only months and years currently, but I will add it to the todo list, in the mean time you can use a "text field" with a mask to do this!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mo monochrome 18 Sep, 2014
Hi Max,
thanks for your answer!

First: Thanks for your developement!

Could you please inform me when you added this feature? This would be great!
II the meanwhile i will mask it.
:)

Thanks for your support,
Thorsten
Gr GreyHead 18 Sep, 2014
Hi monochrome,

Please see this FAQ which tells you how to use the JQuery UI datepicker if you need features that aren't yet in the CF one.

Bob
This topic is locked and no more replies can be posted.