PC Review


Reply
Thread Tools Rate Thread

How can I prefill a form?

 
 
=?Utf-8?B?TGFycnkgTGFuZGFldGE=?=
Guest
Posts: n/a
 
      7th Dec 2005
I'd like to create a hyperlink to another page that has a form on it, and I'd
like to prefill some of the fields on the form. How can I do this?
 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      7th Dec 2005
Where would the data come from that you would prepopulate the form with?

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

"Larry Landaeta" <Larry (E-Mail Removed)> wrote in message
news:BC2EDB5E-DCA3-4F72-8AE8-(E-Mail Removed)...
> I'd like to create a hyperlink to another page that has a form on it, and I'd
> like to prefill some of the fields on the form. How can I do this?



 
Reply With Quote
 
Andrew Murray
Guest
Posts: n/a
 
      7th Dec 2005
If it's the way I'm thinking you're asking about (I may be wrong), right
click (or double click) the form field(s) and go to "Properties", and fill
in the default value for each field.

"Larry Landaeta" <Larry (E-Mail Removed)> wrote in message
news:BC2EDB5E-DCA3-4F72-8AE8-(E-Mail Removed)...
> I'd like to create a hyperlink to another page that has a form on it, and
> I'd
> like to prefill some of the fields on the form. How can I do this?



 
Reply With Quote
 
=?Utf-8?B?TGFycnkgTGFuZGFldGE=?=
Guest
Posts: n/a
 
      7th Dec 2005
There would be multiple places (hyperlinks) where the form would be called
from. Based on which hyperlink was selected, I'd like to prefill certain
fields which reflect where the form was called from. Therefore, the data
would be static within each hyperlink.

"Thomas A. Rowe" wrote:

> Where would the data come from that you would prepopulate the form with?
>
> --
> ==============================================
> 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.
> ==============================================
>
> "Larry Landaeta" <Larry (E-Mail Removed)> wrote in message
> news:BC2EDB5E-DCA3-4F72-8AE8-(E-Mail Removed)...
> > I'd like to create a hyperlink to another page that has a form on it, and I'd
> > like to prefill some of the fields on the form. How can I do this?

>
>
>

 
Reply With Quote
 
Mike Mueller
Guest
Posts: n/a
 
      7th Dec 2005
By using a scripting language (asp, javascript) you could
read the referrer page or the query string and use that to
set the default values of the form

"Larry Landaeta" <(E-Mail Removed)>
wrote in message
news:405E89FA-A36E-4374-BBDE-(E-Mail Removed)...
: There would be multiple places (hyperlinks) where the form
would be called
: from. Based on which hyperlink was selected, I'd like to
prefill certain
: fields which reflect where the form was called from.
Therefore, the data
: would be static within each hyperlink.
:
: "Thomas A. Rowe" wrote:
:
: > Where would the data come from that you would
prepopulate the form with?
: >
: > --
: > ==============================================
: > 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.
: > ==============================================
: >
: > "Larry Landaeta" <Larry
(E-Mail Removed)> wrote in message
: >
news:BC2EDB5E-DCA3-4F72-8AE8-(E-Mail Removed)...
: > > I'd like to create a hyperlink to another page that
has a form on it, and I'd
: > > like to prefill some of the fields on the form. How
can I do this?
: >
: >
: >


 
Reply With Quote
 
=?Utf-8?B?TGFycnkgTGFuZGFldGE=?=
Guest
Posts: n/a
 
      7th Dec 2005
So I can't pass them in as parameters to the page with the form on it? In
other words, let's say I have a form field named 'MsgType' with two possible
values of 'TypeA' or 'TypeB'. Isn't there a way to make a call like:
http://mydomain.com/myFormPage.htm?MsgType=TypeA

?????

"Mike Mueller" wrote:

> By using a scripting language (asp, javascript) you could
> read the referrer page or the query string and use that to
> set the default values of the form
>
> "Larry Landaeta" <(E-Mail Removed)>
> wrote in message
> news:405E89FA-A36E-4374-BBDE-(E-Mail Removed)...
> : There would be multiple places (hyperlinks) where the form
> would be called
> : from. Based on which hyperlink was selected, I'd like to
> prefill certain
> : fields which reflect where the form was called from.
> Therefore, the data
> : would be static within each hyperlink.
> :
> : "Thomas A. Rowe" wrote:
> :
> : > Where would the data come from that you would
> prepopulate the form with?
> : >
> : > --
> : > ==============================================
> : > 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.
> : > ==============================================
> : >
> : > "Larry Landaeta" <Larry
> (E-Mail Removed)> wrote in message
> : >
> news:BC2EDB5E-DCA3-4F72-8AE8-(E-Mail Removed)...
> : > > I'd like to create a hyperlink to another page that
> has a form on it, and I'd
> : > > like to prefill some of the fields on the form. How
> can I do this?
> : >
> : >
> : >
>
>
>

 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      7th Dec 2005
You would need to use JavaScript to retrieve the values from the querystring.

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

"Larry Landaeta" <(E-Mail Removed)> wrote in message
news:54910D30-7E79-4F35-B197-(E-Mail Removed)...
> So I can't pass them in as parameters to the page with the form on it? In
> other words, let's say I have a form field named 'MsgType' with two possible
> values of 'TypeA' or 'TypeB'. Isn't there a way to make a call like:
> http://mydomain.com/myFormPage.htm?MsgType=TypeA
>
> ?????
>
> "Mike Mueller" wrote:
>
>> By using a scripting language (asp, javascript) you could
>> read the referrer page or the query string and use that to
>> set the default values of the form
>>
>> "Larry Landaeta" <(E-Mail Removed)>
>> wrote in message
>> news:405E89FA-A36E-4374-BBDE-(E-Mail Removed)...
>> : There would be multiple places (hyperlinks) where the form
>> would be called
>> : from. Based on which hyperlink was selected, I'd like to
>> prefill certain
>> : fields which reflect where the form was called from.
>> Therefore, the data
>> : would be static within each hyperlink.
>> :
>> : "Thomas A. Rowe" wrote:
>> :
>> : > Where would the data come from that you would
>> prepopulate the form with?
>> : >
>> : > --
>> : > ==============================================
>> : > 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.
>> : > ==============================================
>> : >
>> : > "Larry Landaeta" <Larry
>> (E-Mail Removed)> wrote in message
>> : >
>> news:BC2EDB5E-DCA3-4F72-8AE8-(E-Mail Removed)...
>> : > > I'd like to create a hyperlink to another page that
>> has a form on it, and I'd
>> : > > like to prefill some of the fields on the form. How
>> can I do this?
>> : >
>> : >
>> : >
>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?TGFycnkgTGFuZGFldGE=?=
Guest
Posts: n/a
 
      7th Dec 2005
I see, thanks.

"Thomas A. Rowe" wrote:

> You would need to use JavaScript to retrieve the values from the querystring.
>
> --
> ==============================================
> 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.
> ==============================================
>
> "Larry Landaeta" <(E-Mail Removed)> wrote in message
> news:54910D30-7E79-4F35-B197-(E-Mail Removed)...
> > So I can't pass them in as parameters to the page with the form on it? In
> > other words, let's say I have a form field named 'MsgType' with two possible
> > values of 'TypeA' or 'TypeB'. Isn't there a way to make a call like:
> > http://mydomain.com/myFormPage.htm?MsgType=TypeA
> >
> > ?????
> >
> > "Mike Mueller" wrote:
> >
> >> By using a scripting language (asp, javascript) you could
> >> read the referrer page or the query string and use that to
> >> set the default values of the form
> >>
> >> "Larry Landaeta" <(E-Mail Removed)>
> >> wrote in message
> >> news:405E89FA-A36E-4374-BBDE-(E-Mail Removed)...
> >> : There would be multiple places (hyperlinks) where the form
> >> would be called
> >> : from. Based on which hyperlink was selected, I'd like to
> >> prefill certain
> >> : fields which reflect where the form was called from.
> >> Therefore, the data
> >> : would be static within each hyperlink.
> >> :
> >> : "Thomas A. Rowe" wrote:
> >> :
> >> : > Where would the data come from that you would
> >> prepopulate the form with?
> >> : >
> >> : > --
> >> : > ==============================================
> >> : > 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.
> >> : > ==============================================
> >> : >
> >> : > "Larry Landaeta" <Larry
> >> (E-Mail Removed)> wrote in message
> >> : >
> >> news:BC2EDB5E-DCA3-4F72-8AE8-(E-Mail Removed)...
> >> : > > I'd like to create a hyperlink to another page that
> >> has a form on it, and I'd
> >> : > > like to prefill some of the fields on the form. How
> >> can I do this?
> >> : >
> >> : >
> >> : >
> >>
> >>
> >>

>
>
>

 
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
Prefill a text box on a form =?Utf-8?B?TWlrZSBILg==?= Microsoft Excel Programming 2 17th Aug 2007 04:46 PM
Prefill Records in Form Stalin Microsoft Access Form Coding 3 11th Jul 2007 10:51 PM
prefill a form =?Utf-8?B?SmFyZWQ=?= Microsoft Access Forms 1 15th Nov 2005 03:41 PM
Prefill Form Edgar Chado via AccessMonster.com Microsoft Access Forms 3 3rd May 2005 07:07 PM
Prefill data on a form. =?Utf-8?B?YmRlaG5pbmc=?= Microsoft Access Forms 1 27th Jul 2004 10:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:27 AM.