Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2087

Checkboxes in forms always return "on" (considered as "checked" server-side)

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Checkboxes seem to be always checked, because forms.js, in the gatherParameters method, always retrieve the value() of a checkbox. In jQuery val() always returns "on" for a checkbox, checked or not.

      I think forms.js should test if the field is a checkbox and if it is checked, if not, return; on this field, just like it would be on a classic form.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hlship Howard Lewis Ship
            julien1619 Julien Blatecky
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment