• Resolved stuartgre

    (@stuartgre)


    Is it possible to automatically click the next button once a user has filled out/selected a form field as oppose to having to manually click the next button?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author fabianlindfors

    (@fabianlindfors)

    Hi!

    You’re probably best of writing some Javascript which listens for the change you want and then manually triggers a click for the “next” button. If you’re using jQuery you can trigger a next button click with: $('.af-next-button').click().

    Thread Starter stuartgre

    (@stuartgre)

    Hey,

    Thanks for your reply– unfortunately, I had tried this but it just seemed to click the button but not move on to the next page of the form ??

    Thread Starter stuartgre

    (@stuartgre)

    If I add this to forms.js it does work howver…

    
    form.$next_button.click(function(e) {
        e.preventDefault();
        self.nextPage( form );
    });
    
    $('input[type="radio"]').click(function(e) {
        e.preventDefault();
        self.nextPage( form );
    });
    

    Switching out the top block for the second block does work however… is there a way to safely edit this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Auto Pagination’ is closed to new replies.