Problem with rendering form validation result

Hi, I created a registration form for the site, now I need to add validation on the number of characters entered. The validator itself works fine, but there is a problem with the formatting of the notification that reports when the limit is exceeded.

here’s the message
image

fusion

`
prototype(Site.POND:CreateAccount) < prototype(Neos.Neos:Plugin) {
controller = ‘Account’
action = ‘new’
package = ‘Site.POND’

        isInBackend = ${node.context.inBackend}
        loggedInRedirect = ${q(node).property('loggedInRedirect')}
        loggedInRedirect.@process.convertUris = Neos.Neos:ConvertUris {
            forceConversion = true
        }

        activationType = ${q(node).property('activationType')}

        successPage = ${q(node).property('successPage')}
        successPage.@process.convertUris = Neos.Neos:ConvertUris {
            forceConversion = true
        }
        activatePage = ${q(node).property('activatePage')}
        activatePage.@process.convertUris = Neos.Neos:ConvertUris {
            forceConversion = true
        }
        privacyPolicyPage = ${q(node).property('privacyPolicyPage')}
        privacyPolicyPage.@process.convertUris = Neos.Neos:ConvertUris {
            forceConversion = true
        }`

validator in the controller

* @Flow\Validate(argumentName="mail", type="\Neos\Flow\Validation\Validator\StringLengthValidator", options={ "minimum"=1, "maximum"=10 })

If you use var_dump($this->options), you can see that the minimum and maximum values specified in the controller come.
image

I would be grateful for your feedback!

Hi @romancheh

I have had a similar issue with a different validator

I guess this is a general issue in the validator - and not your fault :slight_smile:

If you render your plugin with Fluid, you could look at the f:validation.results ViewHelper where you have a for attribute, and then you can write your own text. It’s described here

https://neos.readthedocs.io/en/stable/References/ViewHelpers/FluidAdaptor.html#f-validation-results

Hi @sorenmalling

Thank you for your feedback!