[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 Created: 11/Aug/14  Updated: 24/Nov/14  Resolved: 01/Sep/14

Status: Closed
Project: Magnolia Form Module
Component/s: field
Affects Version/s: 2.2.5
Fix Version/s: 2.2.6

Type: Improvement Priority: Neutral
Reporter: Christian Ringele Assignee: Eric Hechinger
Resolution: Fixed Votes: 1
Labels: support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLSTK-1424 Adjust bootstrap files of demo-projec... Closed
is related to MGNLFORM-250 Adding release notes to "MGNLFORM-235... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

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)


 Comments   
Comment by Christian Ringele [ 11/Aug/14 ]

See last comment of customer.

Comment by Roman Kovařík [ 01/Sep/14 ]

Reopened:

  1. You can choose no validator and also the validator called none and combine none with other validators. It's very confusing. Please remove the none validator as it's not needed anymore.
  2. Probably related migration issue: http://hudson.magnolia-cms.com/view/Migration/job/int_migration-tests_5.2-to-5.3.x-branch/Diff_Reports/
Generated at Mon Feb 12 05:38:12 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.