TYPO3-Headless / headless

TYPO3 Headless JSON API providing content for PWA application (e.g. javaScript apps like nuxt-typo3)
https://t3headless.io
GNU General Public License v2.0
159 stars 60 forks source link

Custom validation errors ignored in EXT:form JSON output #690

Closed Browserwerft closed 5 months ago

Browserwerft commented 10 months ago

Describe the bug Custom error messages set via the EXT:form editor interface are missing from the JSON output. Only the default TYPO3 error message is output, but not the custom one. Bildschirmfoto 2024-01-02 um 14 38 42

To Reproduce Steps to reproduce the behavior:

  1. Create a form with any field type
  2. Add any validator to the field
  3. Set a custom error message for the validator
  4. See "validationErrorMessages" for this field in the JSON output

Expected behavior Custom error messages should override the default messages in the JSON output.

TYPO3 version and TYPO3 Headless version TYPO3 v11 TYPO3 Headless v3.4.1

twoldanski commented 5 months ago

hi @Browserwerft in the releases v4.3 / v3.4.2 I added additional customMessage to output message directly from TYPO3 backend, so you can use message from panel or automatic translation.