Page 1 of 1

Prevent time scroll up beyond Start Time

PostPosted: Fri Oct 11, 2013 4:34 am
by verybless
In Day and Week view, our start time is 8:00 am. But user is able to scroll the time up all the way to midnight. This is not desirable for us. Is there a way to prevent user to scroll pass 8:00 am ?

Re: Prevent time scroll up beyond Start Time

PostPosted: Fri Oct 11, 2013 6:27 am
by John Sindelar
Hi,

Simply change the script "Time Earlier" by adding the lines shown in blue:

TimeEarlier.png
TimeEarlier.png (55.57 KiB) Viewed 3285 times


You may also want to enforce this by adding an Auto-Enter Calc definition to the field CalendarInterface::TimeStartGlob:

Code: Select all
Max ( Self ; Time ( 8 ; 0 ; 0 ) )


Make sure to uncheck "Do not replace existing value"

=)