Disabled Checkboxes
Posted
by tonsils
on Stack Overflow
See other posts from Stack Overflow
or by tonsils
Published on 2010-03-15T04:57:51Z
Indexed on
2010/03/15
4:59 UTC
Read the original article
Hit count: 229
Hi,
Hoping someone can assist or point me in the right direction to another thread/url with regards to disabled checkboxes.
I basically have a couple of checkboxes in my form, that are not database items but am retrieving the source value based on a database column.
As I do not want the user to be able to change these checboxes, I have disabled these checboxes
When I query a record, the form at start-up retrieves the value for the checkbox with no issues.
The problem is, when I hit a validation error on my form when the page is submitted, my checkbox values that were originally retrieved as 'Y', i.e checked are now null.
Can anyone pls assist with what is going on or a workaround inorder to maintain these values when a validation error occurs.
Thanks.
© Stack Overflow or respective owner