Execute both client & server code in one UI Action using gsftsubmit()SummaryUI Actions are mostly used to perform some server-side update to a record/records. In other cases, you can use the ‘Client’ checkbox on the UI Action record to execute some client-side script But what if you need to do both? For example you want to click a button to make an update to a record, but only after successful client side validation. Here is a sample ‘Reopen Incident’ UI Action that performs client side validation on ‘Reopen Incident’ button click and executes the server side script only after successful validation of client script Name: Reopen Incident Action name: reopen_incident Form button: True Client: TrueOnclick: reopen(); Condition: /*set the condition accordingly*/ Script: Related LinksgsftSubmit() is mostly used in UI actions that have a client side and a server side script.At the end of the client side script, gsftSubmit(null, g_form.getFormElement(), "Action name") triggers the UI Action again which is specified in the 3rd parameter, this time only the server side code gets executed.