Its been a while since I was writing any forms in CF and I have what will probably be a simple problem for you to help me solve.
I have a basic form
rm2.cfm" name="myform" height="1800" >
<cfparam name="comments" default=" " >
<td ><cfinput type="text" name="cons" value="#Container_cons_num
ber#" readonly="yes" ></td>
<td ><cfselect query="cats" value="category" name="category" ></cfselect> </td>
<td ><cftextarea label="Comments" name="comments" required="yes" cols="50" value="#comments#" </cftextarea></td>
<tr><td colspan="8" align="right"><cfinput type="submit" name="submit" value="Submit"></td></tr>
This form is prepopulating some columns from a database and the user updates two corresponding columns with information.
I have an issue with the cftextarea field "comments". I convert the list to an array on the second page. I have inserted a space into the cftextarea so that the list always contains a value and does not fall out of sequence with the container number. My concern is what if my users remove the space, thinking they are being helpful, I would update the wrong record.
So can I force the cftextarea list to always contain at least a space without showing it to the user. So if the user does not type anything in that box can I insert a space ?