Link to home
Start Free TrialLog in
Avatar of ohemaa
ohemaa

asked on

Coldfusion Form

I am designing a form. I have a drop down on the form with all deptid from a select statement in sql.  On selecting a deptid I want other information related to the selected deptid on the form.  eg address, manager, sponsor.  Any inputs
thx
Avatar of dgrafx
dgrafx
Flag of United States of America image

You need a related selectbox function.
Try this: http://www.cfitools.com/isite/details.cfm?ItemID=5970

good luck
Avatar of g127404
g127404

Asfusion has some good articles that might help.
Maybe start with this:
http://www.asfusion.com/examples/item/more-quick-bindings

<form name="test" method="post" action="index.cfm">
<select name="id"  style="width:300px; height:150px;" multiple  onChange="javascript:document.test.submit();"></cfoutput>
                  
                                       <cfoutput query="queryname">

                              <option value="#id#">#id#</option>
                                                                                          </cfoutput>
                                                                                                                                                 
                      </select></div></td>
                        <input type="hidden" name="inf" value="1" />
</form>
<cfif isdefined("inf") and inf eq 1 >
<cfquery>

make a query with id in where class.
</cfquery>
then displayusing the output using cfquery output</body>
ASKER CERTIFIED SOLUTION
Avatar of SRIKANTH MADISHETTI
SRIKANTH MADISHETTI
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial