Uploaded image for project: 'Click'
  1. Click
  2. CLK-164

CheckBox is still active when you set it to readonly.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • core
    • 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.

      Attachments

        Activity

          People

            medgar Malcolm Edgar
            dfrizelle David Frizelle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: