Skip to content

Commit

Permalink
feat: add customErrorMessage to FileSize validator in FileUpload
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdmlln committed Nov 13, 2024
1 parent d767264 commit 8993c31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Configuration/Form/FormElements/FileUpload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@ prototypes:
60:
value: xl
label: formEditor.elements.FormElement.editor.size.xl.label
propertyCollections:
validators:
10:
editors:
400:
templateName: Inspector-TextEditor
propertyPath: customErrorMessage
doNotSetIfPropertyValueIsEmpty: true
4 changes: 2 additions & 2 deletions Configuration/TypoScript/Extensions/tx_form.typoscript
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
plugin.tx_form {
settings {
yamlConfigurations {
100 = EXT:rmnd_headless/Configuration/Form/BaseSetup.yaml
1731482571 = EXT:rmnd_headless/Configuration/Form/BaseSetup.yaml
}
}
}

module.tx_form {
settings {
yamlConfigurations {
100 = EXT:rmnd_headless/Configuration/Form/BaseSetup.yaml
1731482571 = EXT:rmnd_headless/Configuration/Form/BaseSetup.yaml
}
}
}

0 comments on commit 8993c31

Please sign in to comment.