WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] labels imgs and email 2 (5 posts)

  1. clairefdez
    Member
    Posted 5 months ago #

    Hi guys,
    I can't find the way to send via email2 the images I've added on labels checkboxes.
    On the form (so user can choose different products), I have this:
    <label><img src="http://www.mydomain.com/product1.png" align=center>[checkbox checkbox-734 "Product 1"] </label>
    On the email2 (so user will recieve an email with the image of the selected product), I use this:
    [checkbox-734]
    I want people to see on an email the images they selected so I even think of using no 'Product 1' description, only '' for having the checkbox under the image.
    Is there a way for doing such a thing?
    Thanks!

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

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 5 months ago #

    You can use pipes for that.

    Change the form-tag to this:

    [checkbox checkbox-734 "Product 1|product1.png"]

    And change the mail-tag to this:

    <img src="http://www.mydomain.com/[checkbox-734]" />
  3. clairefdez
    Member
    Posted 5 months ago #

    It worked fine, thanks!

  4. clairefdez
    Member
    Posted 5 months ago #

    Sorry...
    It worked with a text before:
    [checkbox checkbox-734 "Product 1|product1.png"]

    But not with blank space (or &nbsp;), neither with no text:

    [checkbox checkbox-734 " |product1.png"]
    [checkbox checkbox-734 "&nbsp;|product1.png"]
    [checkbox checkbox-734 "|product1.png"]

    So must be a text there then or there is way to aboid it?
    Thanks!

  5. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 5 months ago #

    There must be a text before pipe.

Reply

You must log in to post.

About this Plugin

About this Topic