change order of fields in emailed form results + email hyperlink

G

Guest

Hello yet again :)

Still mucking about with this form - the form results that I receive by
email have the fields in a different order than what the tab order is on the
form. Is there a way to fix this so the results are shown in a chosen order?
Also (!) is there way to have the email field displayed as a clickable
hyperlink?

Thanks again. and again...

Cheers
L.
 
T

Trevor L.

triplespiral said:
Hello yet again :)

Still mucking about with this form - the form results that I receive
by email have the fields in a different order than what the tab order
is on the form. Is there a way to fix this so the results are shown
in a chosen order?

I don't know what form you are referring to, but if you write your own
script, you can.

e.g
If the form tag is <form name="form1" action=""> and
the fields are named field1, field2, etc. and
the submit is <input type="button" id="submit" value=" Send "
onclick="sendform()" />
use this script:
function sendform()
{
var body = ''
with (document.form1)
{
body += field1.name + ": " + field1.value + '%0d%0a' // line break
after each line
body += field2.name + ": " + field2.value + '%0d%0a' // line break
after each line
body += field3.name + ": " + field3.value + '%0d%0a' // line break
after each line
// these are in the order you require
}
window.location = "mailto:" + "me" + "@" + "mydomain" + ".com"
+ "?subject=My%20Title"
+ "&body=" + body
}

Also (!) is there way to have the email field
displayed as a clickable hyperlink?

The submit button above does this. Or maybe you don't mean this.
 
T

Thomas A. Rowe

Not possible 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.
==============================================
 

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

Similar Threads


Top