We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Different redirects based on form field

How Do I?

MC Industries's avatar
MC Industries
1 posts
4 years ago
MC Industries's avatar MC Industries

I’m looking for a pointer in the right direction to research this because my GoogleFu just isn’t cutting it.

I’m on EE2 (hopefully to be upgraded to 5 soon…), with Freeform, and I have a form that, based on the value of one of the fields, I want to send the user to one of two different pages after they submit the form.

The form is a “do you qualify” form for a service, if field X is 1, they go to page 1, if field X is 2, they go to page 2.

I’m very new to EE, and web design in general. But the boss gets what the boss asks for!

       
Robin Sowell's avatar
Robin Sowell
13,160 posts
4 years ago
Robin Sowell's avatar Robin Sowell

Hrm- I think to do it properly, you’d need to write a custom extension. Freeform has plenty of hooks, so if you have a bit of PHP I’d consider that route.

If you don’t want to go custom add-on, you might could do something creative on the form return page- which is defined in the form settings. I think you can use the submission id so that on the return, you can display the contents of the form they just submitted.

So- you use a conditional based off of the value of the relevant field- to either redirect or conditionally display content, etc. It’s not quite as clean as an extension, but I think it would work fine.

👍 1
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.