• Hello i am using Contact 7 form plugin. I get option to have HTML body for email template like

    <table>
    <tr>
    <td width=”17%” align=”left” valign=”top”><span style=”font-family:Arial, Helvetica, sans-serif; color:#333; font-size:12px;”>Name:</span></td>

    <td width=”83%” align=”left” valign=”top”>[your-name] </td>
    </tr>
    </table>
    Here [your-name] is actually value of textbox,I Dont want to make REQUIRED field,

    So what i want is IF THE NAME TEXT BOX VALUE is filled only then show labels and textbox value.Means show the above given Table in email ONLY IF IT IS FILLED .

    I searched a lot ,i didnt get any help on any website ,Please help me .Thanks

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Looks like you are looking for Conditional Logic which is not available in the Contact Form 7 plugin. It can be done via custom programing but you would need to be rather skilled at WordPress development using PHP and/or jQuery.

    Some of the premium Form plugins do offer Conditional Logic including Gravity Forms and Ninja Forms.

    Thread Starter nutandevjoshi

    (@nutandevjoshi)

    @buzztone ,Can you please provide/give me code ,to make conditional logic for Email body ,I will be grateful to you please.I am new in WordPress development.

    We had the same problem and created a simple plugin: www.ads-software.com/plugins/contact-form-7-mail-conditions/

    [if your-name]
    Hello [your-name]
    [/if]

    No used of this plugin Can any one solved this problem?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress Contact 7 , make Conditional Email Body’ is closed to new replies.