• I have been trying just about everything here.
    Basically when the user gets to this page they have the contact form 7, and the results of a planner showing on page.

    What I would like to do is simply clone my div on page to the the email body.

    Sounds so easy.

    Very easy to use jQuery to clone to the form itself

    <div id"test2"></div>
    jQuery('#direct-mail-answer').clone('#direct-mail-answer').appendTo('#test2');

    But I just can’t seem to get the div into the email body.
    The only things that seem to come across are inputs by name=*

    How can I get custom elements on page into the email message?

    http://wordpress.org/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter darkknight187

    (@darkknight187)

    Has any one been able to carry over html into the email?
    I’m thinking some function right before email sent.
    I tried a function in the addition settings on_sent_ok: “cloneresults();”

    And the function was the above jQuery.

    Tried pasting jQuery directly into additional settings.

    There’s got to be a way around it.

    Any thoughts???

    Thank you in advance.

    I think I know why your jQuery doesn’t work. Had a similar problem here.

    You need to enqueue your script in the footer, to the jquery array, so the wpcf7 scripts are loaded when yours get executed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Clone div on page to email message’ is closed to new replies.