The following code works fine to force a submit on a single page form:
$theForm = jQuery('#fl-main-content').find('form');
$theForm[0].submit();
If I try this on a multi page form then this always goes to the “Next” page of the form. I’ve tried the “click” action on the “Submit” button with the same result. I’m guessing I need to set something indicating that the form is being submitted and not just moving between pages. What am I missing?