We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25357
    • 92 Posts
    Evo 3.0.3
    Formit 1.4.0 using Formretriever

    This is not strictly a formit problem, but is a good example of something we need to resolve. We submit the form, a prehook stores the data, email sends, set some custom placeholders, redirect page properly displays all the placeholders. All good.

    But when the end user refreshes the page, all the placeholders are empty. What I’m looking for is some way to redirect the page if it gets reloaded. Was thinking some sort of snippet that, if the placeholder values aren’t present, redirect, but haven’t had any luck in figuring it out. smiley

    This could apply to any plugin or snippet that sets placeholders and redirects to a resource, if the redirect page values aren’t null, redirect to a different location (e.g., home page, back to form, whatever.)

    EDIT: I have a solution of sorts, using sessions.
    if (session) { unset session, redirect }
    else { set session variable }

    Feels like a workaround.