Question
Select Box value question.
Greetings:
I have a form page that displays information to be edited with several DD select boxes. All have numerical values (CF_SQL_INTEGER).
I don't want to display the first option from the results query in a box, because if the user makes no changes to that field, the value of that choice will replace the real value, e.g. if State field shows Texas, and the address was not changed, the value sent to the State field would be Alabama.
I don't want to give it a value of "0" , and giving it no value sends the text string "select" :
<cfselect name="location_vendor_ID" class="inputtext">
<option>--- Select ---</option>
<cfloop query="get_vendor"><option value="#vendor_ID#">#vendor_name#</option></cfloop>
</cfselect>
Any help appreciated...
rinorman
I have a form page that displays information to be edited with several DD select boxes. All have numerical values (CF_SQL_INTEGER).
I don't want to display the first option from the results query in a box, because if the user makes no changes to that field, the value of that choice will replace the real value, e.g. if State field shows Texas, and the address was not changed, the value sent to the State field would be Alabama.
I don't want to give it a value of "0" , and giving it no value sends the text string "select" :
<cfselect name="location_vendor_ID" class="inputtext">
<option>--- Select ---</option>
<cfloop query="get_vendor"><option value="#vendor_ID#">#vendor_name#</option></cfloop>
</cfselect>
Any help appreciated...
rinorman
