
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 11:06 PM
Hello,
I'm calling a script include in my catalog client script through GlideAjax, which works fine. Nevertheless, I can't find a way to return the value to the main function.
How is this possible? Preferably with an example.
Thanks in advance for your reply.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2023 01:24 AM
you can show field message of type error so it won't allow submitting the form.
So unless and until the user selects correct date they cannot submit it
When the validation fails show field message of type error; if validation is fine clear the message
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 11:28 PM
How about moving the logic you want to run after the GlideAjax in your main function to the callback function?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 11:34 PM
@Tomi Corigliano You can use getXMLWait() if you do not wish to use a callback function, please be informed that getXMLWait() will only work on the platform view and will not work on the Service Portal.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2023 12:19 AM
Thank you for your reply. I need it in the Service Portal. So that's unfortunately not an option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 11:44 PM
Can you share your complete scripts and also the screenshots?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader