g_scratchpad not available in the platform
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 09:45 AM
I am using this code and it works fine in service portal for a catalog item. but gives error that it can't find g_scratchpad in the platform. Any work around to work in plat form as well. Appreciate it. I need it to substitute synchronous ajax in submit handler.
if (g_scratchpad.isFormValid)
return true; //Don't submit until this value is true
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 10:36 AM
Hello,
Please check the below article for the same:-
Please mark my answer as correct based on Impact.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 10:48 AM
Hi @Giri6,
For better explanation you can refer to below links specifically response by Maik Skaddow:
g_scratchpad.isFormValid? How does it work?
How to do async validation in an onsubmit client script.
Aman Kumar