in2code-de / powermail

This is the official repository of the TYPO3 extension powermail! Powermail is a well-known, editor-friendly, powerful and easy mailform extension for TYPO3
https://in2code.de
86 stars 173 forks source link

It's not possible to query the validation status of powermail forms via JS #975

Open pixeldesu opened 7 months ago

pixeldesu commented 7 months ago

Reported by and confirmed with @maddy2101 in Slack communications. An intent to possibly sponsor this issue being fixed for 10.7.x has been expressed.

It's currently not possible to execute actions on clientside validated forms only if they are actually valid, because Powermails FormValidation JS class does not expose whether the form has errors or not.

Most of the JS API is private, and the currently available methods do not allow to manually trigger validation (FormValidation.validate() falsely only sets up validation, it doesn't actually run it).

To make this possible, some class members of FormValidation should have their visibility increased:

nabossha commented 7 months ago

would support this as well!