- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-23-2025 07:27 AM
Hi all Iam trying create display error message on some conditions. When normal onsubmit client script is tried its working fine but , issue was its not working in agent workspace. So i tried with the script include. Now the error message are working fine . But when condition is true is also not able to submit the form. Like if the condition is verified also no error message is displaying also not able to submit the form. Anyone can help
Below is the script:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-23-2025 07:53 AM
Hi @Sharath807
By default GlideAjax doesn't work on the OnSubmit client script.
Please find below docs to know more and workaround.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0783579
Hope this helps.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-23-2025 07:53 AM
Hi @Sharath807
By default GlideAjax doesn't work on the OnSubmit client script.
Please find below docs to know more and workaround.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0783579
Hope this helps.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-24-2025 05:55 AM
Hi @Sharath807 ,
Sharing with you how Script Includes work in ServiceNow. This lesson will help you build a deeper understanding of how to use Script Includes effectively with object-oriented programming principles. You'll gain full control over the parameters you pass in and the data you returnāgiving you the confidence and maturity to write clean, reusable, and scalable code.