- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 12:40 AM
Hi All,
I have a catalog item, with 1 drop down ( displaying all RITMs submitted for this catalog item) and 2 date fields(Start Date, End Date).
Ask is to auto-populate the 2 date fields based on the RITM selected from drop-down.
I used GlideAjax and getting start date field properly.
However, the end date is getting nullified. we have a custom catalog client script which validates the start and end date :
when I try to select the RITM from drop-down, my start date gets populated but end date throws error:
I am not sure why the catalog client script is throwing error only for end date.
Please help.
Thanks and regards,
R'ana
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 06:51 AM
Please ignore the query.
I was able to get it fixed by de-activating the existing validation on catalog client script and moved the validation logic to Script Include and called it via a GlideAjax to throw the error message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 12:49 AM
Just to add, I de-activated the validation catalog client script and it works for the end date.
Please help me understand if there is an issue with the validation as it works independently on the catalog item.
Regards,
R'ana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 06:51 AM
Please ignore the query.
I was able to get it fixed by de-activating the existing validation on catalog client script and moved the validation logic to Script Include and called it via a GlideAjax to throw the error message.