Support » Plugin: Forminator - Contact Form, Payment Form & Custom Form Builder » Quiz pagination script not working

  • Resolved therealshadowhunter

    (@therealshadowhunter)


    Hello,

    Wow, Forminator looks like it is able to replace my current individual plugins for forms, polls and quizzes, if only the quiz featured pagination ๐Ÿ™

    So, I was super hopeful when I stumbled on the custom script. Uploaded it only to see that the “NEXT” button was disabled as soon as I clicked an anwser.

    I’m wondering if native (and tested) pagination is on the roadmap? You can coun’t me as a paying member as soon as it is available.

    BTW: W3 Total Cache enabled and Forminator will throw errors that “something went wrong”… not sure why that is?

    Thank you for your feedback.

    TRS

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @therealshadowhunter

    I hope you are doing well,

    We do have plans for the pagination on Quiz, and I can see this is a regular request so I hope we can start to work soon on this feature.

    I’m adding this ticket as one more request to the plugin team.

    About the W3 Total cache, it can happen if a cache plugin moves jQuery to the footer making it load before of the form.

    Is it possible to send the form URL and we can take a look?

    You can also check our performance plugin as an alternative: https://wordpress.org/plugins/hummingbird-performance/

    Best Regards
    Patrick Freitas

    Thread Starter therealshadowhunter

    (@therealshadowhunter)

    Hello Patrick,

    All well at this side, hope the same goes for you and your team.

    Thank you for your prompt feedback. Glad to hear it is on the road map ๐Ÿ™‚

    Yes, by all means, feel free to have a look:

    https://pubcorns.be/test/

    I have disabled W3 Total Cache just to be sure.

    I configured the script like this:

    private $number_questions_per_page = 1;// Enter number questions per page, default is 5.
    			private $button_prev = 'Prev';// Change the label for Prev button.
    			private $button_next = 'Next';// Change the label for Next button.
    			private $include_form_ids = [1439];
    			private $exclude_form_ids = [];//enter list exclude form ids, e.g: [234,456]
    
    			private $current_page = 1;
    			private $id_item = 0;
    			private $message = 'Please answer the questions!';

    Thank you, looking forward to your feedback.

    With best regards,

    TRS

    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @therealshadowhunter,

    Thanks for sharing further information, I was doing some tests on my end and I was actually able to replicate the issue you are having.

    The code disables Next button when an answer is selected so it can be saved, and it should re-enable back once that’s done but that part doesn’t seem to work properly ๐Ÿ™

    It seems that the code will need some revising so I’ve passed it over to our devs to have a look.
    Please note that this goes more into the custom development section so we can’t give an ETA at the moment.

    Cheers,
    Predrag

    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @therealshadowhunter,

    It seems that the issue was with the type of the Quiz, can you give this a go now and let us know if that does the trick ๐Ÿ™‚
    https://gist.github.com/wpmudev-sls/e13e7554cb739ab9d4ef102f8fca9947

    Cheers,
    Predrag

    Thread Starter therealshadowhunter

    (@therealshadowhunter)

    Hello Predrag,

    Thank you so much for your prompt feedback.

    Fantastic, the updated script indeed cured the problem, works perfect now ๐Ÿ™‚

    I have never seen such a fast action from a developper.

    On a side note, I have to say that the saving of each answer does make the quiz a bit slow (displaying the correct answer after selecting an answer), but it is an approach that has its benefits as well. Guess I have to optimize my site a bit better ๐Ÿ˜‰

    Again, thank you so much. That will be 5-stars for Forminator ๐Ÿ™‚

    Take care,

    TheRealShadowHunter

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Quiz pagination script not working’ is closed to new replies.