Support » Plugin: Contact Form 7 - Conditional Fields » How to display either A or B value in Message

  • Resolved Danny

    (@dannyfoo)


    [group salutation]
    	[select your-salutation include_blank "Mr" "Ms" "Mrs" "Dr" "Prof" "Others"]
    
    	[group salutation-other]
    		[text your-salutation-other]
    	[/group]
    [/group]

    Not sure if the above is the right way to do this. What I’m trying to achieve is the following:

    Mr Name (A)

    If Others was selected and filled with say Master, then the message result should be:

    Master Name (B)

    How can I achieve this in the Message notification?

    Thanks in advance.

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

    (@jules-colle)

    In the notification this is not possible for now. But In the email you can achieve this like so:

    Dear [salutation-other][your-salutation-other][/salutation-other][normal-salutation][your-salutation][/normal-salutation] Name,

    In order for this to work you will need to add one more empty group to your form:

    [group normal-salutation][/group]

    and this condition:

    if [your-salutation] not equals "Others" then show [normal-salutation]

    • This reply was modified 1 year, 5 months ago by Jules Colle.
Viewing 1 replies (of 1 total)
  • The topic ‘How to display either A or B value in Message’ is closed to new replies.