ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

exp:email:contact_form - return to *same* page

May 05, 2009 10:39am

Subscribe [2]
  • #1 / May 05, 2009 10:39am

    CharlieDuncan

    8 posts

    I have RTFM’d, I really have but can’t find this one.

    I’d like to have a contact form in an embed so that it could be included on arbitrary pages. When submitted I’d like to remain in the submitting page.

    Is there an equivalent of ‘this page’ I can use for the return link?

  • #2 / May 05, 2009 11:16am

    Sue Crocker

    26054 posts

    Charlie, I usually recommend using Solspace’s Freeform Module to work with contact forms. For return, you’d use return=”{segment_1}/{segment_2}/{segment_3}”

    Does that help?

  • #3 / May 05, 2009 11:39am

    CharlieDuncan

    8 posts

    Charlie, I usually recommend using Solspace’s Freeform Module to work with contact forms. For return, you’d use return=”{segment_1}/{segment_2}/{segment_3}”

    I will have a look at the Freeform module, I tried the return= you suggested with exp:mail:contact_form and it took me to a ‘random’ page, were you suggesting the return= in conjunction with Freeform?

  • #4 / May 05, 2009 1:12pm

    Sue Crocker

    26054 posts

    My apologies - yes, used with FreeForm.

  • #5 / May 05, 2009 1:20pm

    Lisa Wess

    20502 posts

    With that said, the same trick should work for the contact form. If it’s not, can you post your entire code please?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases