• Resolved ezabba

    (@ezabba)


    I have a form with some required fields and some that are not. I would like to show relevant text in the body of the email just if a not required field have some content and show nothing if not, for example something like:

    [if [telephone]]
    Telephone: [telephone]
    [endif]

    Is it possible something like this?

    https://ww.wp.xz.cn/plugins/contact-form-7/

Viewing 4 replies - 1 through 4 (of 4 total)
  • See Exclude lines with blank mail-tags from output option below Mail>Message body:

    Thread Starter ezabba

    (@ezabba)

    Thanks buzztone but I can’t see anything like that below Message body.

    My CF7 version is 3.7.2, maybe this option is available in most recent versions only?

    Yes – this feature was added a few versions ago.

    ​​Yet another reason for you to keep the plugin update to date. Not keeping WordPress, Themes & Plugins up to date can be a significant security risk.

    Thread Starter ezabba

    (@ezabba)

    Thanks a lot, WordPress is up to date but I’m afraid someone before me modify the code of some plugins so I must double check ’em before update.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘conditional displaying tags’ is closed to new replies.