Forum Moderators: phranque

Message Too Old, No Replies

Cold Fusion

Anyone?

         

Shuvi

5:16 pm on Mar 18, 2004 (gmt 0)

10+ Year Member



I have a question about cold fusion.

<form method="post">
<td><select name="FundType">
<option></option>
<option value="unallocated">Unallocated Fund</option>
<option value="allocated">Allocated Fund</option>
</select> </td>
</form>

I need to request the FundType value and if it's allocated then show the drop down below. This all happens on the same page. Anyone have any ideas for me?

<td><select name="Name">
<option></option>
<option value="test1">test1</option>
<option value="test2">test2</option>
</select> </td>
Please help!

Alternative Future

5:57 pm on Mar 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Shuvi,

Not sure on how to do it with cold fusion. But is this the effect you are trying to achieve?

<form method="post">
<table>
<tr>
<td>
<select name="FundType" onchange="getElementById('secondSelect').style.display=''">
<option></option>
<option value="unallocated">Unallocated Fund</option>
<option value="allocated">Allocated Fund</option>
</select> </td>
<td><select name="secondSelect" style="display='none'">
<option></option>
<option value="test1">test1</option>
<option value="test2">test2</option>
</select>
</td>
</tr>
</table>
</form>

-George

Shuvi

6:01 pm on Mar 18, 2004 (gmt 0)

10+ Year Member



Yes that is exactly what I'm looking for. Thank you so very much!

Shuvi

6:32 pm on Mar 18, 2004 (gmt 0)

10+ Year Member



Do you know how I can submit the form back to the same page after they have selected some thing from the first drop down menu. I need it do what you showed me George but I only need the second drop down to appear if they picked allocated.
Thanks for your help!

Alternative Future

7:10 pm on Mar 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello Shuvi,

Would this do you?

<html>
<body>
<script language=javascript>
function checkWhat(what){
if(what == 'allocated'){
document.getElementById('secondSelect').style.display=''
}
}
</script>
<form method="post">
<table>
<tr>
<td>
<select name="FundType" onchange="checkWhat(this.value)">
<option></option>
<option value="unallocated">Unallocated Fund</option>
<option value="allocated">Allocated Fund</option>
</select> </td>
<td><select name="secondSelect" style="display='none'">
<option></option>
<option value="test1">test1</option>
<option value="test2">test2</option>
</select>
</td>
</tr>
</table>
</form>
</body>
</html>

-George

Shuvi

7:19 pm on Mar 18, 2004 (gmt 0)

10+ Year Member



Thank you George. Your a lifesaver!
I'd been trying to figure a way out for a while now.