The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Contact Form 7
how to filter content inside message body,display differently in different page? (1 post)

  1. cyngate
    Posted 3 years ago #

    I have two page sharing the same contact form,
    one with product enquiry list+ contact,
    one with only contact
    i append the product enquiry list using javascript in the hidden empty product enquiry field.

    so in the message body i have extra field inside my contact form
    Product Enquiry

    Is there other way to do without putting a constant value, and hack the sendmail by filter it out using str_replace("Product Enquiry <br/>No Enquiry ","",string)
    before sending through wp_mail();

    for example, if no product the the javascript will append "No Enquiry" to this hidden field, so in the contact page

    Product Enquiry
    No Enquiry
    can be filtered out


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic