Please accept my apologies if i'm not clear, I will try my best.

I have EE v 2.9.2 installed and I am using the built in email contact form.

However, I am trying to get it to re-direct to a thank you page rather than show the ajax message block.

Here is my code:

{exp:email:contact_form user_recipients="no" return="http://www.pixelsandcode.co.uk" recipients="[email protected]" charset="utf-8" form_class="form form--full d-showgrid"}

<fieldset class="controls controls--left">
    <label for="name" class="controls__label">What's your name?</label>  
    <input type="hidden" name="message[]" value="--Name--" />
    <input class="controls__control" type="text" id="name" name="message[]" size="40" maxlength="35" value="" placeholder="Benjamin Franklin" />

<input name="submit" type='submit' value='Submit Form' class="btn btn--primary" />


This is actually a stripped back view, I have other fields but even like this I get no redirect.

Is there something really obvious that I am missing here?

  • In your return parameter, you should pass a thank-you page url without base url. Ex:- return="contact/thank-you" Commented Apr 5, 2017 at 13:12
  • Hi, yeah I tried that. Maybe something else is going on here that I can't see.
    – Nick Toye
    Commented Apr 5, 2017 at 13:26
  • try redirect="5" return="contact/thank-you" Commented Apr 5, 2017 at 13:45
  • 1
    If it comes from ajax, You can redirect on ajax success function on your custom thank you page. Commented Apr 5, 2017 at 13:56
  • 1
    Ok, that looks like it has fixed it for now. I think I will be upgrading to EE3, and get something more sophisticated - but for now this works. So thanks very much, I appreciate the help.
    – Nick Toye
    Commented Apr 5, 2017 at 14:07

1 Answer 1


for redirect and return page, you should follow the doc https://docs.expressionengine.com/latest/add-ons/email/contact_form.html

For now, Response comes in ajax success. You can redirect to your custom thank you page in AJAX success function.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.