Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

gsft submit()

Abhijeet14
Mega Expert

Hi,

  what is gsft submit() function and it's purpose??

 

Regards,
Abhijeet Bangera
 
www.dxsherpa.com

3 REPLIES 3

Raj68
Mega Guru

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

 

SaiRaviKiran Ak
Tera Guru

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

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