We've got this working on a number of forms via client side scripts on the submit button and it is working well (a bit of a compromise but acceptable).
We do have 1 form where we have a large FPL script that needs to run before the client side script.
options
- move the FPL to a different element so it has been called before the submit button is pressed. This isn't feasible as there isn't a suitable element.
add another button for the user to press (and some blurb) that calls the FPL and then the button containing the client script to goto to the Payment Portal. This is ugly yet fast but opens the risk that users do not go on to take payment.
convert the FPL to javascript and call it from the client before the goto Payment Portal is called (more work than anticipated).
Thanks