• Resolved fijisunshine

    (@fijisunshine)


    Excellent plugin!

    I upgraded to CF7 version 5.4 and version 4.1.4 and this plugin. My “previous” buttons are no longer working: [previous “Back”]

    Nothing happens when I click previous buttons. There’s no console error and no errors in the WordPress error log. I’m using PHP 8.0.

    [multistep …] buttons work perfectly.

    Any suggestions? Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author webheadcoder

    (@webheadllc)

    Hmmm, I’m not sure what could be causing the previous button to show and not do anything. Usually the previous button will be hidden if something went wrong and it doesn’t know where to go. I don’t see any errors in my local test site when using PHP 8.0 either.

    Is the form up somewhere that I can take a look? If not, here are the things I would check:
    – Make sure jQuery is loaded
    – Make sure the previous button has .wpcf7-previous or .wpcf7-back class.
    – Check the SessionStorage to see if the cf7msm_prev_urls key is set.

    Thread Starter fijisunshine

    (@fijisunshine)

    Thank you @webheadllc. In the html source, the previous button has style=”display: none;” So like you said, I think it doesn’t know where to go and is trying to disappear. The previous button is displaying because I have some custom css in style.css marked as important, i.e. “display: inline-block !important;”

    1. Yes, jQuery 3.6.0 and jQuery Migrate 3.3.2 are loading.
    2. Yes, the previous button has class .wpcf7-previous
    3. No, there’s no cf7msm_prev_urls key on either step.

    My form is 2 steps. Here are the shortcodes that I use for the steps:
    Step 1: [multistep step_1of2 first_step “https://www.example.com/step_2of2/?pass_variable=123”%5D
    Step 2: [multistep step_2of2 last_step]

    In SessionStorage, cf7msm-first-step is set to 1 on both steps 1 and 2. Could this be related to the issue?

    Thanks again

    Plugin Author webheadcoder

    (@webheadllc)

    Ah, it looks like the query string (?pass_variable=123) would mess up the logic and cause the Prev button to be hidden or not work. I can have a fix out later this week.

    Thread Starter fijisunshine

    (@fijisunshine)

    Thank you @webheadllc. I just updated to version 4.1.5 of your plugin and the issue is resolved.

    Your excellent support of your plugin is greatly appreciated.

    Plugin Author webheadcoder

    (@webheadllc)

    Great! I was meaning to update this thread, but you beat me to it. Thank you for the update.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Previous button no longer working’ is closed to new replies.