Multiple CFFORMs in a page w/ binding CFSELECTS
Howdy all.
I have a page that has two CFFORMs, each uniquely named (form1 & form2 for example).
Each form is essentially the same - each one has a cfselect with States pulled from a common query and also has a bound cfselect that shows the Area Codes for that chosen state. Both cfselect elements are called "State" and "AreaCode" respectively. I do not wish to change the name of the cfselect elements.
{cfform name="form1"}
{cfselect name="State" bind="cfc:path.to.cfc.getStates()" bindonload="yes" }
{cfselect name="AreaCode" bind="cfc:path.to.cfc.getAreaCodes(state={form1:State})" bindonload="yes" }
{ /cfform }
{cfform name="form2"}
{cfselect name="State" bind="cfc:path.to.cfc.getStates()" bindonload="yes" }
{cfselect name="AreaCode" bind="cfc:path.to.cfc.getAreaCodes(state={form2:State})" bindonload="yes" }
{ /cfform }
The problem is, if I switch the state select in form2, *form1*'s AreaCode gets the bound response instead of form2.
Is there a way to expressly tell CF to "stay within its own form" for the binding?
Thanks in advance,
Andrew
