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?

Thanks.



Comments

  • edited September 14
    Solved.
    image

  • Solved.
    datepicker.png
    528 x 276 - 23K
  • edited September 14
    How did you solve it?
  • @mfelber

    On the class.forms, search custom form date section

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

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


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

Sign In or Register to comment.