Date field Configuration in Service Catalog
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Dear Experts,
We have a requirement in which the date field(Expiry date) will take the date field value as a range from todays date to five year .Any date apart from that I will throw an error message as the date has to be in that range only.
Please suggest any on-change/on-load client script to achieve this for a catalog form.
Date Field Format:(DD/MM/YYYY).
Thanks in Advance,
Sambit
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Hi @sam352120
Please go with Catalog UI policy.
Try the below one.
function onCondition() {
g_form.clearValue("expiry_date");
g_form.addErrorMessage("Expiry date should be within 5 years from Today");
}
Regards,
Siva
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Thanks Siva for your valuable input.
