Project

General

Profile

Actions

Feature #80124

closed

Epic #80186: EXT:form - strong defaults and UI/ UX optimization

EXT:form - custom error message for regexp validator

Added by Martin Kutschker over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
Start date:
2017-03-03
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.

Actions #1

Updated by Josef Glatz over 7 years ago

  • Category set to Form Framework
Actions #2

Updated by Björn Jacob over 7 years ago

  • Parent task set to #80186
Actions #3

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.

Actions #4

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.

Actions #5

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.

Actions #6

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.

Actions #7

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

Actions #8

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.

Actions #9

Updated by Gerrit Code Review about 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

Actions #10

Updated by Gerrit Code Review about 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

Actions #11

Updated by Gerrit Code Review about 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

Actions #12

Updated by Gerrit Code Review about 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

Actions #13

Updated by Gerrit Code Review about 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

Actions #14

Updated by Gerrit Code Review about 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

Actions #15

Updated by Gerrit Code Review about 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

Actions #16

Updated by Gerrit Code Review about 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

Actions #17

Updated by Benni Mack about 7 years ago

  • Target version changed from 8 LTS to 9.0
Actions #18

Updated by Gerrit Code Review about 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

Actions #19

Updated by Gerrit Code Review about 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

Actions #20

Updated by Gerrit Code Review almost 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

Actions #21

Updated by Björn Jacob almost 7 years ago

  • Sprint Focus set to Remote Sprint
Actions #22

Updated by Gerrit Code Review almost 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

Actions #23

Updated by Gerrit Code Review almost 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

Actions #24

Updated by Gerrit Code Review almost 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

Actions #25

Updated by Gerrit Code Review almost 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

Actions #26

Updated by Gerrit Code Review almost 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

Actions #27

Updated by Gerrit Code Review almost 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

Actions #28

Updated by Gerrit Code Review almost 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

Actions #29

Updated by Gerrit Code Review almost 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

Actions #30

Updated by Gerrit Code Review almost 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

Actions #31

Updated by Gerrit Code Review almost 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

Actions #32

Updated by Gerrit Code Review over 6 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

Actions #33

Updated by Gerrit Code Review over 6 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

Actions #34

Updated by Susanne Moog over 6 years ago

  • Target version changed from 9.0 to 9.2
Actions #35

Updated by Björn Jacob over 6 years ago

  • Sprint Focus deleted (Remote Sprint)
Actions #36

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

Actions #37

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

Actions #38

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

Actions #39

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

Actions #40

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

Actions #41

Updated by Ralf Zimmermann about 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #42

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF