This absolutely was a great solution for me. I was trying to redirect to different thank you pages based on a <select> choice but the browser was not accepting “onFormSubmit”. I think there was a conflict on the page. Pulling the logic out of the JS that writes the form to the page is key. I replaced ‘$’ with ‘jQuery’ to avoid conflicts and - voila - it worked. Thanks!