• Dear Support,

    Thank you very much for a very good plugin!

    How can the following HTML be written with CF7-tags?:

    <input name="mc4wp-INTERESTS[58fa86ca5b][]" type="checkbox" value="35295e99fd"> <span>Photography</span>

    It should look something like:

    [checkbox mc4wp-INTERESTS[58fa86ca5b] "Photography|35295e99fd"]

    But it appears as the brackets, i.e. [58fa86ca5b], can not be used within the CF7-tags.

    The reason I am asking, is that I have a CF7 contact form which I have also connected to MailChimp using the plugin MailChimp for WordPress (mc4wp). The user fills in contact details and there are also several checkboxes where the user can choose various list groups to get subscribed to, such as Photography above. When submitting the CF7-form, this information is also sent to MailChimp including the list groups selected.

    Everything works fine, including the checkboxes with list groups, as long as I implement the checkboxes using the HTML above.

    However, I would prefer to use the CF7 tag-format, so that the checkboxes appear as mail-tags and can be included in the contact form sent as an email.

    So, is it possible, in some way, to include brackets within a CF-tag?

    I have searched the Internet for a solution, but I only find people who are having the same problem, but no solution.

    Looking forward to your solution! ??

    Sincerely,

    Jan Martin

    • This topic was modified 7 years, 5 months ago by Jan Martin.
    • This topic was modified 7 years, 5 months ago by bdbrown.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    You don’t need to do it with a form-tag. Just put the HTML directly into
    the Form tab field.

    Thread Starter Jan Martin

    (@jan-martin-1)

    Thank you Takayuki,

    for your quick reply! Very much appreciated.

    Yes, you are right, and as I mentioned, using the HTML above works just fine with regards to MailChimp by putting the HTML directly into the Form tab field.

    But it does not work with regards to CF7, because when using HTML, the checkboxes does not show up as mail-tags in the Mail tab field and they can not be included in the CF7 form that will be sent as mail. Usually, checkboxes included as CF7-tags will be accessible as mail-tags in the Mail tab field.

    As it is now, when I receive an email from CF7, I will have to log into MailChimp to see what checkboxes the user checked.

    A funny thing is that Flamingo is able to grab the checkboxes from the HTML code, and I can see which checkboxes that have been checked in Flamingo. So I wonder why CF7 can’t grab them and present them as mail-tags in the Mail tab field, so that I can include them in the mail sent by CF7?

    Another issue with using HTML instead of CF7-tags, is that the CF7 form gets really long and messy, when you include several checkboxes using HTML as you will have to wrap them in all the HTML and CSS that CF7 otherwise so neatly does automatically (I have 9 separate checkboxes that CF7 will create 117 lines of HTML for). If it would be possible to use brackets like this, within the CF7-tag, then several separate checkboxes could very neatly be included in the CF7-form (9 checkboxes would just be 9 lines of CF7-tags).

    So any way of supporting this with CF7-tags or is it something that could be available in the near future?

    Thank you very much for your great plugin and great support,

    Jan Martin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Brackets within CF7 tags’ is closed to new replies.