[MGNLFORM-356] Multi checkbox form error message Created: 19/Oct/21  Updated: 16/Aug/22

Status: Open
Project: Magnolia Form Module
Component/s: field
Affects Version/s: 2.7.3
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Björn Eschle Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: quickwin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File selection.patch    
Template:
Patch included:
Yes
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:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Date of First Response:
Epic Link: AuthorX Support
Team: AuthorX

 Description   

Steps to reproduce

  1. Add form component
  2. Add 2 select checkbox fields with validation (e.g. required)
  3. Submit form without matching checkbox constraint

Expected results

Error messages are shown for both checkboxes

Actual results

Error messages are only shown for the first checkbox, since the id of the divs are not unique

Workaround

Set custom fixed selection.ftl in configuration

/modules/form/templates/components/formSelection/templateScript


Generated at Mon Feb 12 05:39:24 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.