Passing data from contact plugin to redirected page
Created 6 years ago by machinedean

Hi there,

I don't suppose if anyone knows whether it is possible with the contact plugin (https://pyrocms.com/documentation/contact-plugin/1.2/usage/examples) to redirect like this:


.redirect('thank-you?email={email}')
.to('example@domain.com')
.from('{email}')|raw }}```

I essentially want to pass data submitted on the contact form to the subsequent page.

Thanks

Dean
machinedean  —  6 years ago

I'd be grateful for any insight into this one? Thank you!

edster  —  6 years ago

The contact form doesn't work that way. It is a plugin for simple implementations, if you want to customize it more I would build out a form with your own logic and render that instead.

machinedean  —  6 years ago

Thanks edster, that's disappointing to hear - I was advised incorrectly by someone on the Slack workspace! Not to worry, I will investigate using a form.