Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3619

SwitchableFieldDefinition does not clear Validation and Values for the option NOT selected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • 5.4.2
    • forms
    • Basel 17
    • 1

      If we have a SwitchableFieldDefinition, where every option takes a set of fields. We have validators for some fields with in an option

      For Example:

      Option1.Field11.Validator
      Option2.Field12.Validator

      Option2.Field21
      Option2.Field21.Validator

      Option3.Field31
      Option3.Field32.Validator

      The problem we are facing is if we choose an option eg. Option1 and enter some invalid data only on Field11, then choose another option eg. Option2 enter all valid data under it and submit Save, the validation gets enabled for all the fields and save form action fails. Our expectation was Magnolia UI to
      1. Ignore all values under Option1 under Switch Field Definition
      2. Ignore all validations on Option1 under Switch Field Definition

      • Again the reason being, Option 2 was the selected option by the user

        Acceptance criteria

              fgrilli Federico Grilli
              apalayadi Avinash Palayadi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 10m
                    10m