[MGNLUI-6265] Multifield: As a user I cannot add the same item twice Created: 01/Oct/20 Updated: 22/Apr/22 Resolved: 06/Apr/22 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | dialogs |
| Affects Version/s: | 6.2.3 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Chris Jennings | Assignee: | Unassigned |
| Resolution: | Workaround exists | Votes: | 0 |
| Labels: | ui-team-support | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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: | |
| Epic Link: | formLevelValidation |
| Description |
|
Multi fields support validation of individual values but there is no validation of the combined value. For example, I may wish to enter a shopping list but ensure I do not list the same item twice. Validation of individual fields can ensure I enter sensible words but not that the same one does not appear repeatedly. |
| Comments |
| Comment by Roman Kovařík [ 01/Oct/20 ] |
|
Looks like a subset of a more generic cross field validation feature. |
| Comment by Samuli Saarinen [ 17/Feb/21 ] |
|
UI 5 multivalue field has validation on "top"-level that UI6 component seems not to support |
| Comment by Roman Kovařík [ 12/Nov/21 ] |
|
Hey ssaarinen and chris.jennings, you're right there is no validators config on form definition level but there is EditorView#validate() method for this purpose. here is an example how to use it.
Hope that helps Roman |
| Comment by Roman Kovařík [ 06/Apr/22 ] |
|
Closing this due to inactivity. |