Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-373

Support custom FormValidator rules values

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.0.2
    • Component/s: Form - JS (deprecated)
    • Labels:
      None

      Description

      Allow rule values support for functions to allow conditional rules activation.

      For example:

      new A.FormValidator({
      boundingBox: '#fm1',

      rules: {
      name1: {
      required: function()

      { return A.one('#validate').get('checked'); }

      }
      }
      });

        Attachments

          Activity

            People

            Assignee:
            eduardo.lundgren Eduardo Lundgren (Inactive)
            Reporter:
            eduardo.lundgren Eduardo Lundgren (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              10 years, 13 weeks, 6 days ago

                Packages

                Version Package
                1.0.2