I've been having trouble implementing jQuery click events with Ninja Forms + Multi Step form plugin. The goal is to eliminate the need for the user to click the "Next" button.
Using the following function, I can successfully trigger a click on the next button but only on the first step. Once the second step loads the entire function seems to be unbound (due to the changing of the DOM?).
jQuery(document).on( 'nfFormReady', function( e, layoutView ) {
jQuery( ".nf-field-element ul li label" ).click(function() {
var nextButton = jQuery(this).closest('.nf-form-content').find('.nf-next');
jQuery(nextButton).click();
});
});
Is there a better solution to achieve this? I can't seem to find any concrete developer resources on the Multi-Part Form plugin.