Results 1 to 3 of 3

Thread: Suppressing empty fields

  1. #1
    Join Date
    Jan 2007
    Posts
    27

    Default Suppressing empty fields

    Hi. Is it possible to suppress the field name in the email if no value has been entered?

    I have Address1 and Address2 in my form, and at present if no Address2 is entered I get:

    Address1: <some data>
    Address2: <blank>

    I would really like not even to see the Address2 title.

    I'm using a plain text template.

    Hopefully I've just missed something in the documentation, in which case I apologise.

    Many thanks

    ===Toby===

  2. #2
    Join Date
    Aug 2007
    Posts
    78

    Default Re: Suppressing empty fields

    Since you're using plain text templates, the fields in the template are actually part of the file and will always get sent in the message built from the template. I believe FormMail will read the template file, fill in the variables, and send the completed template as an e-mail message to the designated recipients. I don't know if a HTML template would allow you to include fields based on them having fields or not.

    Peace...

  3. #3
    Join Date
    Jan 2007
    Posts
    27

    Default Re: Suppressing empty fields

    Thanks - I suspected as much. Shame - other formmails can do it....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. omitting empty fields
    By SteveComstock in forum HOWTO Guides and Tips
    Replies: 1
    Last Post: 22-Aug-2012, 01:29 AM
  2. Excluding Empty Fields
    By evildarren in forum HOWTO Guides and Tips
    Replies: 2
    Last Post: 05-Jul-2010, 06:33 PM
  3. Empty missing fields
    By Kalasjnikov in forum Community Support
    Replies: 4
    Last Post: 17-Sep-2007, 04:56 AM
  4. Empty Fields
    By olesek in forum FormMail Subscription Support
    Replies: 3
    Last Post: 27-May-2005, 09:05 PM
  5. Don't Display Empty Fields
    By timandkids in forum FormMail Subscription Support
    Replies: 4
    Last Post: 13-Mar-2005, 08:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •