When using Front Page to compile an on-line form for e-mail submission, is
it possible to define the email subject header with predefined text and text
from one of the from fields.

For example, i'm aware you can choose the predifed text by placing this
with-in FORM PROPERTIES then OPTIONS and EMAIL RESULTS then placing hte
predefined text with-in the e-mail message header subject line, or ticking
the Form Field Name and then placing the Field name in the box instead, but
is it possible to use a combination of both.

So if someone places their name into one of the Form Field entitled NAME
then when you receive a submitted form by email the header will read
something like ENQUIRY FROM 'NAME'.

Can anyone help??

Many thanks,

Steve.

RE: Frontpage E-Mail Message Header subject line by FrontPageForms

FrontPageForms
Fri Nov 05 18:25:01 CST 2004

Hi Steven,

As far as I know, you can't do this with the FrontPage form handler. I have
played around trying to get this to work myself without success.

"Steven Tisseyre" wrote:

> When using Front Page to compile an on-line form for e-mail submission, is
> it possible to define the email subject header with predefined text and text
> from one of the from fields.
>
> For example, i'm aware you can choose the predifed text by placing this
> with-in FORM PROPERTIES then OPTIONS and EMAIL RESULTS then placing hte
> predefined text with-in the e-mail message header subject line, or ticking
> the Form Field Name and then placing the Field name in the box instead, but
> is it possible to use a combination of both.
>
> So if someone places their name into one of the Form Field entitled NAME
> then when you receive a submitted form by email the header will read
> something like ENQUIRY FROM 'NAME'.
>
> Can anyone help??
>
> Many thanks,
>
> Steve.
>
>
>

Re: Frontpage E-Mail Message Header subject line by Ronx

Ronx
Sat Nov 06 02:46:55 CST 2004

You could use JavaScript to modify a hidden field. Something like (not
tested, probably contains errors :( ):

<script>
function SubjectChange() {
var d=document.forms.formname;
d.subject.value = "Enquiry from:" + d.NAME.value;
}
</script>

and in the form

<input type="text" name="NAME" onchange="SubjectChange()">
<input type="hidden" value="Web Enquiry" name="subject">

--
Ron Symonds (Microsoft MVP - FrontPage)
Reply only to group - emails will be deleted unread.


"Steven Tisseyre" <steven.tisseyre@ntlworld.com> wrote in message
news:UBRid.903$vg1.825@newsfe5-gui.ntli.net...
> When using Front Page to compile an on-line form for e-mail submission, is
> it possible to define the email subject header with predefined text and
> text from one of the from fields.
>
> For example, i'm aware you can choose the predifed text by placing this
> with-in FORM PROPERTIES then OPTIONS and EMAIL RESULTS then placing hte
> predefined text with-in the e-mail message header subject line, or ticking
> the Form Field Name and then placing the Field name in the box instead,
> but is it possible to use a combination of both.
>
> So if someone places their name into one of the Form Field entitled NAME
> then when you receive a submitted form by email the header will read
> something like ENQUIRY FROM 'NAME'.
>
> Can anyone help??
>
> Many thanks,
>
> Steve.
>