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.
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
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.
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.
Great! I was meaning to update this thread, but you beat me to it. Thank you for the update.