Uploaded image for project: 'Magnolia Form Module'
  1. Magnolia Form Module
  2. MGNLFORM-61

Show a clearer error message for failed "noHTML" validation

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.1.4
    • 1.1.4
    • None
    • None

    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.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              tmattsson Tobias Mattsson
              frabe Felix Rabe
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD