Returning custom messages for a model via the request file isn't working, any tips? #975
Unanswered
adam-jones-net
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Hey @Arkid, I don't see anything obviously wrong with your code snippet. I'm not 100% sure about the In any case, even without customizing the messages, you should be getting a default error message for required fields : Can you replicate this behavior on a simple module with one required field? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a model that uses a repeater block, some media. The only requirements is that some fields are 'required'. The site has no multi-lingual support, so that keeps it all fairly simple.
The required setting works for all the fields I need it on, BUT no custom messages appear in Twill when I submit a form with empty required fields that are within the repeater element I have. Instead I get a generic:
"Your submission could not be validated, please fix and retry"
Is anything obviously wrong with the below ?
Beta Was this translation helpful? Give feedback.
All reactions