gsft submit()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2018 10:01 PM
Hi,
what is gsft submit() function and it's purpose??
Regards,
Abhijeet Bangera
www.dxsherpa.com

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2018 10:08 PM
Hi,
gsftSubmit() triggers the UI Action which is specified in the 3rd parameter, which is the action name/element id.
It is mostly used in UI actions that have a client side and a server side script.
At the end of the client side script, you call gsftSubmit in order to trigger the UI Action again - this time running only the server side code.
http://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/
NOTE: Mark correct or helpful if it helps you.
Warm Regards,
Raj patel

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2018 10:19 PM
Hi,
gsftSubmit(null, g_form.getFormElement(), "ui action id") triggers the UI Action which is specified in the 3rd parameter, which is the action name/element id.
It is mostly used in UI actions that have a client side and a server side script.
At the end of the client side script, you can call gsftSubmit in order to trigger the UI Action again - this time running only the server side code.
Also have a look at Mark Stanger's explanation from the below link:
http://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/
Thanks,
Ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2018 10:39 PM
Hi Abhijeet,
Can you mark my response as Correct if it answers your question ? So that this thread will be helpful for others as well.
Thanks,
Ravi