Project

General

Profile

Actions

Feature #83672

closed

Add client-side validation to EXT:form

Added by Georg Ringer almost 7 years ago. Updated almost 5 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2018-01-24
Due date:
% Done:

0%

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

Description

To be able to use EXT:form just as it is, a JS validation is required


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #31094: Integrate client-side validationClosed2011-10-19

Actions
Actions #1

Updated by Georg Ringer almost 7 years ago

Actions #2

Updated by Georg Ringer almost 7 years ago

  • Subject changed from Add frontend validation to EXT:form to Add client-side validation to EXT:form
Actions #3

Updated by Björn Jacob almost 7 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Georg Ringer

As mentioned in the linked ticket: which solution/ framework would you prefer? Should this really be part of the core? What do you think of the following solution? https://github.com/svewap/form_validate

We do not have this feature on the roadmap for v9 but we would appreciate having a discussion on how to handle this feature.

Actions #4

Updated by Riccardo De Contardi almost 7 years ago

I am not sure that I would agree.

This would mean that you will depend on

- jQuery (probably)
- the library that you have chosen

Some questions come in my mind (as integrator):

- If I have already included jQuery I have to hunt down where EXT:forms include it and remove it
- What happens when these libraries will be updated?
- What library would be used? Parsley? Formvalidation.io? And what if I want to use Abide?

Don't take me wrong, I think that there is nothing insurmountable here; but (my personal opinion) I prefer that TYPO3 remains as much as possible "agnostic" from javascript libraries.

I would totally be in favor of these:

1) (if not already done) add all possible browser-side validation to all components (required, type=email, etc)
2) Create a documentation page about how to add a client-side javascript validation with full examples of several libraries. Plus, a button somewhere in TYPO3 backend that links you to this documentation could be cool.
3) Add one of these validations to the packages (like the introduction package, etc)

Actions #5

Updated by Georg Ringer over 6 years ago

  • Status changed from Needs Feedback to Accepted

@Riccardo: Just as in powermail, which means you can as integrator decide if you want to include jQuery yourself or not or if you do your own implementation.

@Bjoern: Just as form uses bootstrap by default, it is IMO fine to add for the moment 1 TS file to be included which uses jQuery to cover the 95% of usages.

It is a fact that powermail is used so often because it works out of the box and client side validation is missing in EXT:form.

Actions #6

Updated by Georg Ringer about 6 years ago

  • Assignee deleted (Georg Ringer)
Actions #7

Updated by Christian Eßl about 5 years ago

Would be a very useful feature for ext:form.
My suggestion is to not supply any JS at all but provide only a generic ajax validation API that makes it easy to hook any js validation library into it and provide a documentation page that shows off how you can utilize the ajax validation in js with one of the more popular js validation frameworks. (but I have no idea what is en vogue right now, the js community is changing so quickly)

Actions #8

Updated by Björn Jacob almost 5 years ago

  • Status changed from Accepted to Rejected

Right now, we do not want to work on this topic (at least not for v10 and v11). There are other topics on the roadmap. As discussed during the T3CMD, we do not see such a feature in the core at the moment.

Actions

Also available in: Atom PDF