Calling script include in on submit client script (not setting value)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 05:53 AM
Hi team,
I am calling script include and setting value of variable but the value is not setting,
script include:
but its working fine in on change client script
Why am going on submit in our form there is no on change of variable , Why I need on submit if risk rating is high abort the action and display the two variable & mandatory the variable if it risk rating is low na allow to user to submit the form
If any one knows abt this kind of scenario could please help me this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 06:02 AM
From the above image it looks like you're using the back-end Catalog Item/Record Producer form, not the portal one, so I believe usage of waits with an onSubmit Client Script will be possible (on portal it won't be).
Looking at your Client Script I don't see the usage of a wait. See GlideAjax - Client (servicenow.com) but you should be using getXMLWait() instead of getXML() if you want this to work with an onSubmit as the submit will progress without waiting for the outcome of the GlideAjax call without it.