If the f_182 is "T", then I want the checkbox to be checked, else uncheck it when this page is displayed the first time.
But the user can change value from T to F or from F to T .
But this final value is not captured in my form. Does anybody know why?
I know that the parameter does not exist if the checkbox is not checked, but my code does not work either way.
<CFFORM ACTION="#PTH_PROJECT#index.cfm" METHOD="post">
<CFIF Trim(ApplDetail.f_182) IS "T">
<CFINPUT TYPE="checkbox" NAME="f_182" VALUE="T" CHECKED="Yes">
<CFELSE>
<CFINPUT TYPE="checkbox" NAME="f_182" VALUE="F" CHECKED="NO">
</CFIF>
<INPUT TYPE="submit" NAME="cmdSubmit" VALUE="Submit" WIDTH="100">
Thanks,
Longhorn
But the user can change value from T to F or from F to T .
But this final value is not captured in my form. Does anybody know why?
I know that the parameter does not exist if the checkbox is not checked, but my code does not work either way.
<CFFORM ACTION="#PTH_PROJECT#index.cfm" METHOD="post">
<CFIF Trim(ApplDetail.f_182) IS "T">
<CFINPUT TYPE="checkbox" NAME="f_182" VALUE="T" CHECKED="Yes">
<CFELSE>
<CFINPUT TYPE="checkbox" NAME="f_182" VALUE="F" CHECKED="NO">
</CFIF>
<INPUT TYPE="submit" NAME="cmdSubmit" VALUE="Submit" WIDTH="100">
Thanks,
Longhorn