Feature #80124
closedEpic #80186: EXT:form - strong defaults and UI/ UX optimization
EXT:form - custom error message for regexp validator
100%
Description
If an editor sets up a regular expression as validation he or she should be able to provide a custom error message. The reason is that regular expressions are a format that an average vistor who fills out is unable to understand. Therefor the visitor must be given an error message that relates in layman's terms why the input is invalid.
Updated by Thorben Nissen over 7 years ago
I think it should be possible for each validator to add custom error messages, because the default messages are very technical.
I will work on this and make a change request.
Updated by Ralf Zimmermann over 7 years ago
Which version of TYPO3 you use? There was a bug in 8.5 (i think). The original validator messages was choosen insteed of the custom ext:form ones.
Each validator message can be customized with own tranlations. The translations can reside within xliff files or defined with TypoScript.
Each validator messages can be overridden 'form wide' for a special form or for the combination special form - form element.
There is a related pending patchset https://review.typo3.org/#/c/52008/.
If this is enough for you, you don't need to spend time to work on this.
Updated by Thorben Nissen over 7 years ago
The mentioned patch looks very promising, when we talk about predefined forms. Though it does help use here.
This it is more about editors building forms them selves with the wizard. Most editors cannot use some strange looking xml translations files. Therefore should it be possible to define the message in the wizard.
Updated by Martin Kutschker over 7 years ago
This feature request is about the form editor not about predefined forms. See first sentence of description.
The point is that a user must be told what went wrong. Neither a vague "there is an error in your input" nor "your input doesn't match regular expression /a.*b/" is helpful.
Unless this issue has been addressed I wouldn't allow editors to configure a regexp validator.
Updated by Gerrit Code Review over 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Thorben Nissen over 7 years ago
As Martin says, the form wizard is not of much use, if editors can not define the error messages.
Updated by Gerrit Code Review over 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review over 7 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review over 7 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review over 7 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review over 7 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review over 7 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review over 7 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review over 7 years ago
Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Benni Mack over 7 years ago
- Target version changed from 8 LTS to 9.0
Updated by Gerrit Code Review over 7 years ago
Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review over 7 years ago
Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review over 7 years ago
Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review about 7 years ago
Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review about 7 years ago
Patch set 15 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review about 7 years ago
Patch set 16 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review about 7 years ago
Patch set 17 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review about 7 years ago
Patch set 18 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review about 7 years ago
Patch set 19 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review about 7 years ago
Patch set 20 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review about 7 years ago
Patch set 21 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review about 7 years ago
Patch set 22 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review about 7 years ago
Patch set 23 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review almost 7 years ago
Patch set 24 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review almost 7 years ago
Patch set 25 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Susanne Moog almost 7 years ago
- Target version changed from 9.0 to 9.2
Updated by Gerrit Code Review over 6 years ago
Patch set 26 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review over 6 years ago
Patch set 27 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review over 6 years ago
Patch set 28 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review over 6 years ago
Patch set 29 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Gerrit Code Review over 6 years ago
Patch set 30 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52078
Updated by Ralf Zimmermann over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b4de256c5678fe470527463b82deaf02e4fd3ae7.