Personalising subject in email form results

T

TechNic

Hi,

We are now running a number a forms on the website. Each one has been given
its own subject such as "marketing form", "ticket enquiry", "show
application", etc
However, we have hit a snag. When the results get emailed to our Gmail
account, because they all share the same subject Gmail insists on clumping
them all together as being part of the same 'conversation'. This is a known
snag with Gmail.

So I want to set the subject to use a form field combined with a standard
prefix. For example, I'd want to use the submitter's name in the subject but
have that prefixed to tell me which form it came from. Thus each email would
have a unique subject:
"Ticket enquiry from: John Smith"
"Ticket enquiry from: Mary Jones"
"Show application from: John Smith"

I'm using FP2003 by the way. Thanks very much for any suggestions...
 
S

Stefan B Rusynko

You probably already have a FulName field
- where you are getting the names like John Smith & Mary Jones
Create a Topic field - say: "topic" (using drop down selections) with values of
"Ticket enquiry from: "
"Show application from: "

Create a hidden form field
Say named "Subject"
Then concatenate the two form fields ((topic" and "fullname") as a value for the "Subject" field
- and use subject field as the subject for the Email
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Hi,
|
| We are now running a number a forms on the website. Each one has been given
| its own subject such as "marketing form", "ticket enquiry", "show
| application", etc
| However, we have hit a snag. When the results get emailed to our Gmail
| account, because they all share the same subject Gmail insists on clumping
| them all together as being part of the same 'conversation'. This is a known
| snag with Gmail.
|
| So I want to set the subject to use a form field combined with a standard
| prefix. For example, I'd want to use the submitter's name in the subject but
| have that prefixed to tell me which form it came from. Thus each email would
| have a unique subject:
| "Ticket enquiry from: John Smith"
| "Ticket enquiry from: Mary Jones"
| "Show application from: John Smith"
|
| I'm using FP2003 by the way. Thanks very much for any suggestions...
 
R

Ronx

Use a hidden field for the subject which is populated by Javascript when
the users name is entered.

<form name="myform" action= >


<script type="text/javascript">
function popsubject(ee) {
document.forms['myform'].subject.value = "Query form from - " + ee;
}
</script>
<input type="text" name="username" onchange="popsubject(this.value)">
<input type="hidden" value="Query form" name="subject">


</form>


The subject in the hidden field is for those users that do not have
JavaScript available.
If you use FrontPage validation, then change "myform" in the Javascript
to whatever name FrontPage gives the form - usually frontpageform_1 or
similar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top