Emailing Form results

G

Guest

When setting up to email Form results, you can either set up the subject line
to be either a form field name or a standard line.

Is there anyway to have both? In other words, I want my subject line to say
"printed material order" and have the date needed by from that field on the
form?

I tried using the field name with text followed by both ' and an " and
neither worked.

Thanks
 
T

Thomas A. Rowe

You are limited to the options available when using the FP Form Handler.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
M

Murray

You would have to hand code the server scripting for it.

<% EmailSubject='printed material order - needed by ' &
request.form("drop-dead-date") %>

or something like that (assuming the date field had that name, and that the
form is submitting to this page, and that you are building the eventual
email subject line in a variable called EmailSubject).
 
S

Stefan B Rusynko

Use javascript
Create a hidden form field named say: subText
- has your fixed text string in it
<input type="hidden" name="subText" value="printed material order ">
And another one named say: subject
- that is the one you reference in your form properties
<input type="hidden" name="subject" value="">

If your form field w/ the date is a textfield named say: theDate
- add an onchange event to it to concatentate the hidden filed w/ the date field
<input type="text" name="theDate" value="" onChange="this.subject.value=this.subText.value+this.theDate.value";>
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| When setting up to email Form results, you can either set up the subject line
| to be either a form field name or a standard line.
|
| Is there anyway to have both? In other words, I want my subject line to say
| "printed material order" and have the date needed by from that field on the
| form?
|
| I tried using the field name with text followed by both ' and an " and
| neither worked.
|
| Thanks
 

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