Timepicker minTime maxTime (v2017)

Tips submitted by PHPMaker users

Timepicker minTime maxTime (v2017)

Postby jaypolmx » Sun Oct 02, 2016 4:11 am

Due to lack of documentation, maybe this will save you an hour of your precious coding time:
Let's say you want a timepicker that allows only every hour input (without seconds), starting from 7:00am and ending on 8:00pm. You want this in an 24hour format, so in Extensions -> TimePicker click on Advanced tab, then in your desired field you should enter the next parameters:

TimeFormat
H:i

Step
60

Options
{"minTime": "07:00","maxTime": "20:00"}

That's it, hope it helps.
jaypolmx
 
Posts: 7
Joined: Wed Jan 21, 2015 11:43 pm

Return to User Submitted Tips (PHPMaker)