[MGNLFORM-357] Field error anchor links broken 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: Text File form.ftl     File labelId.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 field with server side validation (e.g. e-mail)
  3. Submit form without matching checkbox constraint
  4. Click on error message for invalid field

Expected results

Nothing happens (Field anchor (label) doesn't have an id)

Actual results

User is navigated to invalid field (anchor)

Workaround

Set custom form.ftl in configuration, which sets missing label ids (see attachement)

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


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