[MGNLUI-3527] Item count validation for multi field Created: 18/Aug/15 Updated: 20/Jul/21 Resolved: 13/Jul/21 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | forms |
| Affects Version/s: | 6.2 |
| Fix Version/s: | 6.2.11 |
| Type: | New Feature | Priority: | Neutral |
| Reporter: | Stefan Jahn | Assignee: | Martin Haderka |
| Resolution: | Fixed | Votes: | 7 |
| Labels: | multifield, ux, validation | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 0.95h | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Template: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Release notes required: |
Yes
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Documentation update required: |
Yes
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||||||||||||||||||||||||||
| Epic Link: | formLevelValidation | ||||||||||||||||||||||||||||||||||||||||||||||||
| Sprint: | UI FW 32 | ||||||||||||||||||||||||||||||||||||||||||||||||
| Story Points: | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Check for support of min/max number of entries in MultiValueFields. Two aspects:
Quoting the relevant parts from the cloned ticket:
|
| Comments |
| Comment by Mikaël Geljić [ 18/Aug/15 ] |
|
Splitting the min/max entry vs. reordering concerns into a separate ticket. |
| Comment by René Schubert [ 04/Aug/17 ] |
|
Fix Version is set to 5.3.x, but this still seems to be an issue and is not yet closed. Also, it seems that marking a MultiValueField as required makes the required error message appear permanently. I'd expect it to only appear, if the list does not have at least one entry. Can you please reconsider this issue? Are there any known workarounds, other than not marking the field as required? |
| Comment by Marty Glaubitz [ 01/Oct/18 ] |
|
Still a problem in 5.7 |
| Comment by Mikaël Geljić [ 08/Oct/18 ] |
|
Hi martyglaubitz, rschubert, I've been looking into this a while ago, and have now put up a gist doing just that (Validator impl & YAML definition). Note this is based on Magnolia 5.6+, but the only difference with prior versions is the Vaadin v7 packages. Hope this helps, |
| Comment by Šimon Demočko [ 08/Feb/21 ] |
|
Should we turn this into a 6.2.x improvement? Otherwise I'd close it. |
| Comment by Christopher Chard [ 14/Jun/21 ] |
|
this would still be a welcome improvement! We have several cases for this. Using a description-Info "Please only add a max. of four entries" for editors is not really nice... Cheers, |
| Comment by Marcin Karpeta [ 08/Jul/21 ] |
|
+1 |