[MGNLFORM-61] Show a clearer error message for failed "noHTML" validation Created: 13/Oct/10  Updated: 06/Jan/11  Resolved: 26/Oct/10

Status: Closed
Project: Magnolia Form Module
Component/s: None
Affects Version/s: 1.1.4
Fix Version/s: 1.1.4

Type: Improvement Priority: Major
Reporter: Felix Rabe Assignee: Tobias Mattsson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
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:

 Description   

The file /magnolia-module-form/src/main/resources/info/magnolia/module/form/messages_en.properties contains no line for the noHTML error message, showing a potentially confusing "invalid input" instead. Proposed change:

 form.user.errorMessage.number     = must be a number
+form.user.errorMessage.noHTML     = characters "<>&" are not allowed
 form.user.errorMessage.generic    = Internal error, form could not be sent

I have applied this change locally and it works for me.



 Comments   
Comment by Tobias Mattsson [ 25/Oct/10 ]

Integrated to branch 1.1

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