Hi Ron,
I havent' really changed anything but the text for the boxes. I am
just
playing with it now.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<script type="text/javascript">
function dpdn(ee) {
var vis;
if (document.forms[0].D1.selectedIndex >= 1) vis = "block";
else vis = "none";
FP_changeProp(/*id*/'dpd',0,'style.display',vis);
}
</script>
<p>
<select id="D1" name="D1" onchange="dpdn(this)" size="1">
<option selected="" value="Windows">YES</option>
<option value="Unix">NO</option>
</select>
</p>
<p>
</p>
<div id="dpd" style="display: none; padding: 0; margin: 0; width:
400px;">
<p>Why do they not want to participate? <input class="inp" name="T3"
size="20" type="text" /></p>
</div>
</body>
</html>
:
Try using document.forms[0] instead of document.forms.[o]
That is Zero as opposed to the letter o.
Also, bear in mind that forms[0] refers to the first form in the
HTML -
if
your's is the second form, then change it to forms[1]
If the above is not the cause of the error, please give a link to the
page
or post the code here - including the javascript and the form.
--
Ron Symonds - Microsoft MVP (Expression)
Reply only to group - emails will be deleted unread.
http://www.rxs-enterprises.org/fp
Hi Ronx,
This is exactly what I want to do, however when I attempt to use
the
script, I get error messages, (see below).
Errors:
Line 13
Char 1
Error 'document.forms.o.D1 is null or not an object
Code 0
URL : just the temp directory
Then
Line 20
Char 1
Errror: Object doesn't support this property or method
Code 0
URL: temp directory again
:
Take a look at
http://www.rxs-enterprises.org/tests/layered-form.aspx
--
Ron Symonds - Microsoft MVP (Expression)
Reply only to group - emails will be deleted unread.
http://www.rxs-enterprises.org/fp
message
Hello,
I have a form with "YES/NO" drop down menus. What I would like
to
do
is
require another fied to be completed if "NO" is selected from
the
drop
down.
I need to have a reason behind the selection of "NO". I do not
want
to
allow any default values for this field when the drop is no.
Any suggestions would be greatly appreciated.
Thank you in advance.