Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
Since HTML doesn't allow you to set a checkbox to readonly a work around is required.
A quick fix would be to extend the setReadonly method to call the following when readonly is set to true:
setAttribute("onclick", "return false;"); which stops the user changing the value.
A bigger fix would be to set the field to disabled and to include a hidden field with the real value.