Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-207

Disabled fields should not be checked by the validateRequired function. Relevant to adding the check for field disabled in jcv_isFieldPresent.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.3.0 Release
    • None
    • JavaScript
    • None

    Description

      For validateRequired the following condition checks to see if the field is present. It then sets the validity to false.

      if (!jcv_isFieldPresent(field))

      { fields[i++] = oRequired[x][1]; isValid=false; }

      Supposedly validateRequired as well as all of the validate methods are not supposed to validate fields that are set as disabled. This method seems to categorize disabled fields with those that are null or are undefined.

      validateRequired should differentiate between the disabled fields and the not present fields.

      Please refer to the Comments by alk

      Attachments

        Activity

          People

            Unassigned Unassigned
            jkbreuer Joseph Breuer
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: