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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am looking to automatically populate the specific page URL address that the
form is being filled out on? Any suggestions?
 
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.
 
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)
|/----------------------------­-----------------------
*-----------------------------­-----------------------
 
Back
Top