Add client-side validation to EXT:form
To be able to use EXT:form just as it is, a JS validation is required
#3 Updated by Bjoern Jacob over 1 year 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.
#4 Updated by Riccardo De Contardi over 1 year 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?
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)
3) Add one of these validations to the packages (like the introduction package, etc)
#5 Updated by Georg Ringer over 1 year 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.