You could use an onchange that called a function that dependent on the
currently selected value of the dropdown inserted the correct values in
the fields.
Something like:
function mail(){
if (document.forms[0].dropdownname.value=="Tom Jones")
document.forms[0].emailfieldname.value="(E-Mail Removed)";
else if ...
And so on.
Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
-----Original Message-----
From: woody22 [private.php?do=newpm&u=]
Posted At: 21. juli 2004 15:43
Posted To: microsoft.public.frontpage.client
Conversation: Auto fill forms
Subject: Auto fill forms
Hi,
ive got an online system which allows people to enter info into a
database about an absence request they have - at the same time this
emails the person in charge of absences.
The form is setup now but to make it easier i want to alter the "Name"
and "email" fields so they require no filling in ie - a staff members
name will be chosen from a drop down list (ive done this bit fine) and
then once this is done the relevant email for this person is
automatically placed in the email field. This bit i am struggling with
- anyone any ideas how this can be done??
Thanks!
Woody
--
woody22
------------------------------------------------------------------------
Posted via
http://www.forum4designers.com
------------------------------------------------------------------------
View this thread:
http://www.forum4designers.com/message98905.html