Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

gsft submit()

Harish KM
Kilo Patron
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
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
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.