I want to do the following, and can't think of any way to do it:
I know I can embed SSJS in client-side script, but that SSJS runs on page load or refresh.
The difficult thing here is that I want the SSJS to run only when the button is clicked, and have client-side script run immediately after.
Also, the SSJS might do a submit because it needs up-to-date field values, but it should not save the data source at that time.
Does anyone know how to achieve this?