• Resolved posed

    (@posed)


    What if the user directly calls a subpage of the multistep form via URL:
    How can i redirect the page to the first step of the multistep form instead of getting the message “Please fill out the form on the previous page.”

    Is it possible to detect if a session is running like
    “if (isset($_SESSION))” or similar?

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

    (@webheadllc)

    You would have to write custom code for the pages that you want to redirect. You can check if the cf7msm-first-step cookie is set or not. If it’s not set then redirect to the first page of the form.

    Thread Starter posed

    (@posed)

    Thanks, that worked!

    Thread Starter posed

    (@posed)

    For everyone in plain language:

    if(!isset($_COOKIE[‘cf7msm-first-step’])){
    header(‘Location: ‘ . get_bloginfo(‘url’));
    exit();
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirect page to first step of the multistep forms’ is closed to new replies.