- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 06:52 PM
After when I create field with type is date time.
I want customize this field. I don't want the user to be able to select on Saturdays and Sundays. It will readonly
How to customize date picker?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 06:57 PM
Hi @Le Son ,
I don't think that is doable. But what you can do is , write an onChange script on that field & validate if the date selected is on SAT or SUN. if Yes then you can clear the value from that field & display a field msg as error or an alert stating . Sat & Sun cannot be selected.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 06:57 PM
Hi @Le Son ,
I don't think that is doable. But what you can do is , write an onChange script on that field & validate if the date selected is on SAT or SUN. if Yes then you can clear the value from that field & display a field msg as error or an alert stating . Sat & Sun cannot be selected.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 07:50 PM
Yes, I think this is also good idea. So I will performd by way
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 08:23 PM
Hi @Le Son ,
If my response helped kindly mark it as Helpful & Accepted , so that other users can benefit from it.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 07:12 PM
@Le Son
As @Danish Bhairag2 posted,we can only use onChange script or Br to check the date which user selected。
We can't limit anything when pickking the date ,although it's a normal function on other systems.
I'm not sure if serviceNow will update this widget...