Support » Plugin: Contact Form 7 - Conditional Fields » Conditional Logic in Emails

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jules Colle


    Since version 0.2 this is possible.

    In your form you could put:

    [group salutationFemale][/group]
    [group salutationMale][/group]

    It’s Not necesary to put any text in between.

    And then in your email template you could add:

    [salutationFemale] Dear Ma'am[/salutationFemale]
    [salutationMale] Dear Sir[/salutationMale]

    Hope this helps.

    PS: Don’t forget to update to version 0.2 or later first

    Thread Starter milenoi2016



    unfortunately the new version is not compatible with the last version of cf7. I cannot submit my form anymore. So i had to deactivate your plugin. Can you reproduce this?
    Thanks, Melanie

    Thread Starter milenoi2016


    Dear Jules,

    a few months later πŸ˜‰
    I tried your plugin again und it works –in SOME PAGES.
    But not in that page I need πŸ˜‰

    I use the current Version of WP (4.7.3)und all my plugins are up-to-date.

    My gender-specific Salutation works like a charm in other websites- but not in one website I work currently – and I have no idea why πŸ˜‰

    I use Email 1 + Email 2 an I get these results in my inbox:

    [salutationFemale] Dear Ma’am[/salutationFemale]
    [salutationMale] Dear Sir[/salutationMale]

    So the email-Tags show up in my Email.
    I tried deactivate all plugins except CF7 and this plugin – same Result.

    My Site is hosted bei and i have to use the WP-Mail-SMTP Plugin because I cannot send Email via WordPress with this Hosting-Partner.

    Maybe this might affect the functionality of your Plugin?

    I would be incredibly thankful if you could help me πŸ˜‰

    Best wishes, Melanie

    If anyone stumbles across the same error or if you, Melanie, didn’t find out yet:
    It seems that the conditions in the email text are only respected if they are actually used in the form as well.


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conditional Logic in Emails’ is closed to new replies.