[MGNLUI-3619] SwitchableFieldDefinition does not clear Validation and Values for the option NOT selected Created: 05/Oct/15  Updated: 15/Apr/16  Resolved: 02/Nov/15

Status: Closed
Project: Magnolia UI
Component/s: forms
Affects Version/s: 5.4.2
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Avinash Palayadi Assignee: Federico Grilli
Resolution: Duplicate Votes: 0
Labels: support
Remaining Estimate: 0d
Time Spent: 10m
Original Estimate: Not Specified

Issue Links:
supersession
is superseded by MGNLUI-3625 SwitchableField should only validate ... 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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Basel 17
Story Points: 1

 Description   

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


 Comments   
Comment by Federico Grilli [ 02/Nov/15 ]

Superseded by MGNLUI-3625

Comment by Ilgun Ilgun [ 02/Nov/15 ]

Why this is resolved? It should be closed instead. If another ticket is/will provide solution.

Comment by Federico Grilli [ 02/Nov/15 ]

I'd still like to have a second opinion before closing it.

Generated at Mon Feb 12 09:08:27 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.