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
Web ServersWeb Development Software

Avatar of undefined
Last Comment
SRIKANTH MADISHETTI

8/22/2022 - Mon
dgrafx

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

good luck
g127404

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

SRIKANTH MADISHETTI

<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>
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
SRIKANTH MADISHETTI

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question