Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Ask about custom date

So I have custom due date for client.
But the problem is, they can select past date.

For example, today is September 14th, but they can set the date to September 13th.

How to disable past date selection on custom date?



  • edited September 2017

  • edited September 2017
    How did you solve it?
  • @mfelber

    On the class.forms, search custom form date section

    Below this:
    <script type="text/javascript">
    var dateToday = new Date();

    Now below this:
    numberOfMonths: 2,
    showButtonPanel: true,
    buttonImage: './images/cal.png',

    Add this line:
    minDate: dateToday,
    dateFormat: $.translate_format('<?php echo $cfg->getDateFormat(true); ?>')

Sign In or Register to comment.