This content has been marked as final.
Show 2 replies
-
1. Re: second dropdown based on previous dropdown?
Dan Bracuk Dec 28, 2012 11:27 AM (in response to sakonnetweb)Bind your dropdowns to cfc methods. The documentation on cfinput has examples.
-
2. Re: second dropdown based on previous dropdown?
BKBK Dec 28, 2012 11:44 AM (in response to sakonnetweb)You can do this by means of the bind attribute of cfselect, easy peasy. In fact, the ColdFusion documentation on cfselect has a fully worked out example.
Have a look at the CFM and CFC of the last example. All you have to do is replace States with Banks, and Cities with LoanProcessors. The functions then become getBank() and getLoanProcessors(). Each runs a query. The first function returns an array of banks, the second an array of loan processors for a given choice of bank.

