- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2025 08:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2025 01:03 AM
this onSubmit is for catalog item?
Please share some more details, what are you trying to validate in onSubmit
Why not have the validation on change of your field/variable?
also check these links
How To: Async GlideAjax in an onSubmit script
How to validate before onSubmit in Mobile/Service Portal
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2025 05:49 PM
Hi,Ankur Bawiskar😀
thank you so much.the problem is solved!
How to validate before onSubmit in Mobile/Service Portal
↓
var actionName = g_form.getActionName();
g_form.submit(actionName);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2025 07:18 PM
Glad to help.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader