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.

Embed a Contact Form Within an Entry

December 15, 2010 11:20am

Subscribe [3]
  • #1 / Dec 15, 2010 11:20am

    purefusion

    29 posts

    I’ve dug all around looking for answers as to whether this is possible, but I haven’t found anything. I want to call a Contact Form from within an entry’s field. In this case, it’s a WYSIWYG field.

    Are there any entry field tags that would work like template tags, only within an entry’s fields? Or maybe a whole template could be embedded within an entry’s field? If not, is there any way to get a form into a specific section in the middle of one of my entries’ content?

    What I have is a sidebar and main column field, and I want to add a simple contact form in the middle of content that appears in the sidebar for that entry.

    Thanks for any clues as to how I might approach this. 😊

  • #2 / Dec 15, 2010 1:55pm

    454 Creative

    23 posts

    Have you checked into Allow EE code? http://expressionengine.com/downloads/details/allow_ee_code/

    You can create the form in a template, then embed it in the wysiwyg field

    {embed="forms/contact_form"}

    I’ve done this in the past. Just make sure your wysiwyg editor doesn’t convert the

    " to a ”
  • #3 / Dec 16, 2010 2:57am

    John Henry Donovan

    12339 posts

    purefusion,

    This looks like a suitable solution. You might run into a difficulty or two with Wygwam and the embed but it should work.

    Gonna move this thread to the CodeShare Corner as more appropriate there

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

ExpressionEngine News!

#eecms, #events, #releases