- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2022 12:35 PM
How can i default the date field to the current date and also they cant select past dates? Catalog item.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2022 12:53 PM - edited 12-28-2022 01:01 PM
Hi,
This can done by setting up default value gs.now() and with very simple ui policy.
UI Policy Condition
UI Policy Execute if true
Default value
Thanks and Regards,
Saurabh Gupta

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2022 12:50 PM
Under default value, try out below
javascript: new GlideDateTime().getDate()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2022 12:53 PM - edited 12-28-2022 01:01 PM
Hi,
This can done by setting up default value gs.now() and with very simple ui policy.
UI Policy Condition
UI Policy Execute if true
Default value
Thanks and Regards,
Saurabh Gupta