Uploaded image for project: 'Magnolia Form Module'
  1. Magnolia Form Module
  2. MGNLFORM-235

Allow using more than one validator: The relation between a form field and a validator should be 1:n and not 1:1

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.2.6
    • 2.2.5
    • field

      In a form field one can choose only one validator to use (one drop down).
      This means that if you use 2-3 validators in your project very often, one must encapsulate their logic into a single one.

      An example

      • Regexp validator with general check for all fields.
      • Password validator for the password field.

      Possible solutions

      • A multifield value should be used to allow choosing a 1:n relation.
      • Use a coma-separated list of validators (with custom transformer for the validator field)

        Acceptance criteria

              ehechinger Eric Hechinger
              cringele Christian Ringele
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD