Bug #84230

renderType inputLink validation fails with "email" or "domainname"

Added by Robert Wildling over 1 year ago. Updated about 2 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Start date:
2018-03-13
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The documentation on "inputLink":
https://docs.typo3.org/typo3cms/TCAReference/ColumnsConfig/Type/Input.html#rendertype-inputlink
mentions as possible values "email" and "domainname". To an integrator it seems to be logical to use those values with field that require the input of an email address or URL.
Furthermore, the design of such rendered input fields "recommend" to use the "Link Browser" to create those records with the use of the "Link Browser".

But if so, an error upon saving the record is caused, because (as I assume) the RegEx does not correctly parse the typoscript-like link string, that is generated as soon as any of the other offered fields (like "title" or "css-class") contain values. (Using ONLY the email or url field and leaving the others empty will work, but that would encourage people to create records that are not conforming to accessibility guidelines.)

Solutions that I could imagine:
  • The documentation clearly states that the use of "email" and "domainname" for evaluation purposes is not possible. In that case I wonder, if the Link Browser already checks for the validity of the url/email, which should be mentioned in the documentation.
  • Adapt the regexs...

The images included show the TCA configuration and the steps to create an email link, which eventually leads to the validation error.

(Not sure to which this problem should be assigned...)

step_02.png View (10.5 KB) Robert Wildling, 2018-03-13 09:33

step_01.png View (23.6 KB) Robert Wildling, 2018-03-13 09:33

step_03.png View (42.7 KB) Robert Wildling, 2018-03-13 09:33

step_04.png View (15.5 KB) Robert Wildling, 2018-03-13 09:33

step_05.png View (20.4 KB) Robert Wildling, 2018-03-13 09:33

History

#1 Updated by Ralf Zimmermann over 1 year ago

  • Category changed from Form Framework to FormEngine aka TCEforms

#2 Updated by Benni Mack about 2 months ago

  • Target version changed from next-patchlevel to Candidate for patchlevel

Also available in: Atom PDF