Answered
Bind
How to bind a select value to a input field.
I have this select
<CFSELECT NAME="FoodName" VALUE="Id" QUERY="AllFoods" DISPLAY="Name">
Then I would like to show the id from the item selected.
<CFINPUT TYPE="Text" NAME="FoodId" SIZE="4" BIND="{FoodName.Name}">
But the output is FoodName,FoodName
How do I bind to the select so that the input field shows the id of the selected item?
I have this select
<CFSELECT NAME="FoodName" VALUE="Id" QUERY="AllFoods" DISPLAY="Name">
Then I would like to show the id from the item selected.
<CFINPUT TYPE="Text" NAME="FoodId" SIZE="4" BIND="{FoodName.Name}">
But the output is FoodName,FoodName
How do I bind to the select so that the input field shows the id of the selected item?