I have a Contact Form 7 form that needs to redirect to specific pages depending on how the user arrived at the form. I'm storing the URL they need to be redirected to using localStorage and I'm trying to figure out how to tell contact form 7 this stored URL to use for redirection when the user clicks "Submit".
i.e. the basic redirection method within CF7's "Additional Settings" is:
var newUrl = localStorage.getItem('storedurl');}
on_sent_ok: "location.replace( newUrl );"}
Doesn't have to call localStorage from within CF7, it could just call in a variable that's been set globally. But I can't get either to work.