machinedean - 2 months ago

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:

{{ form('contact') .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 - 2 months ago

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

edster - 2 months 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 - 2 months 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.