Results 1 to 6 of 6

Thread: Setting the subject for my form results

  1. #1
    Join Date
    Apr 2009
    Posts
    5

    Default Setting the subject for my form results

    I have been searching around the forum...really I have tried, but cannot find info on how I control what the subject line reads when I receive emails submitted from my form. Currently I just get a blank subject.


    Also in my form results I get in my email there is a field called real name: It is blank see my form results:

    email: joe@test.com
    realname:
    firstname: Joe Form Test 01
    lastname: Joe Form Test 01
    company: Joe Form Test 01
    address: Joe Form Test 01
    city: Joe Form Test 01
    state: Joe Form Test 01
    zip: Joe Form Test 01
    country: Joe Form Test 01

    Can I get rid of that or at least have it populate with the users name that submitted teh form?

    Thanks to anyone that can help me. It is hugely appreciated.

    -Joe

    p.s. if for any reason it helps to see my form, here it is: https://www.hollins-law.com/form3.php
    Last edited by woodlandplayer; 26-Apr-2011 at 05:04 AM.

  2. #2
    Join Date
    Mar 2011
    Posts
    43

    Default Re: Setting the subject for my form results

    To exclude realname, you can use "Exclude" in "email_options" or, to concatenate the names, you can use "derive_fields" in email_options."

    Browse Creating HTML Forms in the documentation.

    Dr. T.

  3. #3
    Join Date
    May 2008
    Posts
    1,291

    Default Re: Setting the subject for my form results

    To define the subject you'd just use the following hidden field inside your form:

    HTML Code:
    <input type="hidden" name="subject" value="Whatever You Want Your Subject to Be">
    If you want your form visitor to define what the subject is, then you just need to use "subject" for the form field name where they either enter the text or select from a list of options.

    The word "subject" IS case-sensitive and must be lower-case.

    ginger

  4. #4
    Join Date
    Apr 2009
    Posts
    5

    Default Re: Setting the subject for my form results

    Ginger and DR T thanks so much for your guidence! I fixed both of my issues!

    For anyone else running into the same problem on the realname deal just put this in the body of your html:

    <input type="hidden" name="derive_fields" value="realname=firstname+lastname,
    fullphone=area.phone,
    address=street*suburb" />

    SO happy my form works and my results come in just the way I wanted!!!

    Thank you thank you!!!

  5. #5
    Join Date
    Jul 2011
    Posts
    1

    Exclamation Re: Setting the subject for my form results


    I am trying to get the subject line of the email to be the same value as the test box filled in by the user which would be the address. Is there a way to get this to work. I have looked though the threads and can not figure this out from the other users. Below is the html code i am using to define the text box and the line for the subject.
    top"><label for="userAddress">Address *</label></td>
    <td valign="
    top"><input type="text" name="userAddress" maxlength="80" size="42"></td>

    <input type=
    hidden
    name="subject" value=userAddress>



    Thank you for any help!
    Every time I test it out it returns the name useraddress instead of the value from the text box field

    Craig

  6. #6
    Join Date
    May 2008
    Posts
    1,291

    Default Re: Setting the subject for my form results

    Hi,

    The following should work.

    HTML Code:
    <input type="hidden" name="derive_fields" value="subject=userAddress">
    ginger

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sending form results in an HTML email
    By russellr in forum HOWTO Guides and Tips
    Replies: 26
    Last Post: 12-Jan-2006, 08:31 PM
  2. Pull-Down Menu for the Subject
    By sdavistx in forum FormMail Subscription Support
    Replies: 1
    Last Post: 01-Jul-2004, 09:16 PM
  3. Subject=<no subject>?
    By Thomas in forum FormMail Subscription Support
    Replies: 2
    Last Post: 14-Jun-2004, 10:35 PM
  4. Subject?
    By WuLabsWuTecH in forum FormMail Subscription Support
    Replies: 1
    Last Post: 07-Apr-2004, 11:03 PM
  5. not so intersting results
    By expisp in forum FormMail Subscription Support
    Replies: 4
    Last Post: 10-Feb-2004, 07:15 AM

Tags for this Thread

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
  •