Data/Time Field(DatePicker)

kelango87
Kilo Explorer

Hi All,

Actually my requirement is to hide the past date in date/time field in service-now.This functionality is avaliable in jQuery,but i dont know how to implement in javascript\Service-Now.

Note:
In Date/Time field in service-now, the user can select only current or future date and past date should be disable.

6 REPLIES 6

HI Ashish,



Could you please provide a bit detail on how I can implement this with UI script so that all the fields that are of type date will not accept any past date.


What is Validation script? Is it more preferred way of meeting this requirement than writing an UI script.



Please help as I have exactly the same requirement where I have to create a UI script where it will not accept any past date irrespective what table's form it is.


Thanks in advance



Regards


Bandita


Harish Murikina
Tera Guru

By using onchange script you can validate



I found useful script in google to make past date un selactable.


jquery - How to make past date unselectable in fullcalendar? - Stack Overflow