You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a repeater field in Formie is left empty, the error message displayed is:
"Repeater field label 0 Field label can not be empty."
This message is unclear and seems to include unnecessary elements like "Repeater field label 0", "Repeater field label 1", "Repeater field label 2" and so on. A more user-friendly message would be something like:
"Field label can not be empty."
So in my use case I would expect the error to be Name can not be empty.
I don't know wether if this is a real bug or the fields need to be configured in a specific way. Is there a way to show a different error message on Repeater fields?
Steps to reproduce
Add a repeater field with a required subfield (e.g., a "Single-line text" field).
Render the form and add a Single-text subfield
Leave the subfield empty
Submit the form without
Observe the error message
.
Form settings
Multi-page form: Yes
Submission Method: Page Reload
Client-side Validation: No
Custom Form Templates: Yes
Craft CMS version
5.6.6
Plugin version
3.0.20
Multi-site?
No
Additional context
No response
The text was updated successfully, but these errors were encountered:
This is more down to how we resolve the labels for fields in validation, when nested. This was changed slightly recently to fix some other fields with related issues.
Fixed for the next release. To get this early, run composer require verbb/formie:"dev-craft-5 as 3.0.20".
Describe the bug
When a repeater field in Formie is left empty, the error message displayed is:
This message is unclear and seems to include unnecessary elements like
"Repeater field label 0"
,"Repeater field label 1"
,"Repeater field label 2"
and so on. A more user-friendly message would be something like:So in my use case I would expect the error to be
Name can not be empty.
I don't know wether if this is a real bug or the fields need to be configured in a specific way. Is there a way to show a different error message on Repeater fields?
Steps to reproduce
.
Form settings
Craft CMS version
5.6.6
Plugin version
3.0.20
Multi-site?
No
Additional context
No response
The text was updated successfully, but these errors were encountered: