PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?TkY=?=
Guest
Posts: n/a
 
      7th Jun 2005
I am looking to automatically populate the specific page URL address that the
form is being filled out on? Any suggestions?
 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      7th Jun 2005
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.

"NF" <(E-Mail Removed)> wrote in message
news:38DC9F9D-7C03-482B-91B4-(E-Mail Removed)...
>I am looking to automatically populate the specific page URL address that
>the
> form is being filled out on? Any suggestions?



 
Reply With Quote
 
=?Utf-8?B?SmltIEJ1eWVucw==?=
Guest
Posts: n/a
 
      7th Jun 2005
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)
|/----------------------------Â*-----------------------
*-----------------------------Â*-----------------------

"NF" wrote:

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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
automatically populate a field on a form =?Utf-8?B?SHVudEZvckNhc2g=?= Microsoft Access Forms 3 2nd Dec 2005 05:09 PM
Automatically Populate Form if 'Yes' chosen from field Tena via AccessMonster.com Microsoft Access Forms 1 23rd Sep 2005 08:32 PM
automatically populate a field in a form =?Utf-8?B?YXAwNQ==?= Microsoft Access Forms 3 20th Dec 2004 10:29 PM
Automatically populate a form field Leah Microsoft Access Form Coding 5 14th Apr 2004 06:51 PM
Automatically populate a text field on a form Shelley Microsoft Access Forms 3 3rd Sep 2003 09:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:50 AM.