Catalog client script issue to replace getxmlwait
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2023 10:14 AM - edited 11-01-2023 11:14 AM
Hi Team
I have an Catalog Client Script (OnSubmit) where in recommendation is to replace getxmlwait function. Referred below 2 article but still am getting various java errors while submitting catalog.
Error; error there is a javascript error in your browser console servicenow
Appreciate if any suggestion on this please.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0783579
script:
- Labels:
-
Architect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2023 02:52 AM
Thanks Abhijeet for response, So no need to call further call to set true for following?
var actionName = g_form.getActionName();
g_scratchpad.isFormValid = true;
g_form.submit(actionName);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2023 06:15 AM
Hello @priceless that will depend on your requirement If the form should be submitted automatically after the validation and data retrieval steps, then the g_form.submit(actionName) would be necessary.
If my response helps you resolve your issue. Kindly mark it as helpful & correct. It will be helpful to future readers!
Thanks and Regards,
Abhijeet Pawar.