Data/Time Field(DatePicker)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2013 08:32 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2017 07:35 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2015 10:09 PM
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