How can I prefill a form?

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

Guest

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?
 
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.
==============================================
 
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.
 
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.
 
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" <[email protected]>
wrote in message
: 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 address removed)> wrote in message
: >
: > > 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?
: >
: >
: >
 
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.
==============================================
 
I see, thanks.

Thomas A. Rowe said:
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.
==============================================
 

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

Back
Top