How do I automatically populate a field, URL, in a form?

N

NF

I am looking to automatically populate the specific page URL address that the
form is being filled out on? Any suggestions?
 
K

Kevin Spencer

Use default values for the form fields. YOu can find it in the Form Field
Properties dialog box.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 
J

Jim Buyens

Add this script to the page *after* the form field you want to initialize.

<script>
if (document.forms[0].T1.value == "")
{
document.forms[0].T1.value = document.location;
}
</script>

Then, change T1 to the name of your form field.

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
*-----------------------------­-----------------------
|\----------------------------­-----------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||----------------------------­-----------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/----------------------------­-----------------------
*-----------------------------­-----------------------
 
Top