Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

gsft submit()

Harish KM
Kilo Patron

Hi ServiceNow techies,

 

                                        Can u please explain me what is gsft submit() function and it's purpose??

 

 

Thanks & Regards

HARISH

Regards
Harish
1 ACCEPTED SOLUTION

sebastian_g_snc
ServiceNow Employee

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 call gsftSubmit in order to trigger the UI Action again - this time running only the server side code.


Please also have a look at Mark Stanger's explanation:


http://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/


View solution in original post

7 REPLIES 7

sebastian_g_snc
ServiceNow Employee

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 call gsftSubmit in order to trigger the UI Action again - this time running only the server side code.


Please also have a look at Mark Stanger's explanation:


http://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/


okay ..thanks fo the answer..it was really helpfull.


Regards
Harish

Will this gsft Submit() work for List type of UI Action?


No it will not.