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
With the above field on a form add 3 rows you will end up with inputs with correct indexes 0,1,2
Submit the form with empty fields and you will get The charges.x.limit field is required on all 3 rows. This is expected.
{
"message": "The charges.0.limit field is required. (and 2 more errors)",
"errors": {
"charges.0.limit": [
"The charges.0.limit field is required."
],
"charges.1.limit": [
"The charges.1.limit field is required."
],
"charges.2.limit": [
"The charges.2.limit field is required."
]
}
}
Delete the first row
Submit the form again with empty fields, only the first row shows The charges.1.limit field is required
{
"message": "The charges.0.limit field is required. (and 1 more error)",
"errors": {
"charges.0.limit": [
"The charges.0.limit field is required."
],
"charges.1.limit": [
"The charges.1.limit field is required."
]
}
}
This is because the two rows have indexes 1 and 2 but the data being submitted for validation has indexes 0 and 1.
The text was updated successfully, but these errors were encountered:
Steps:
The charges.x.limit field is required
on all 3 rows. This is expected.Delete the first row
Submit the form again with empty fields, only the first row shows
The charges.1.limit field is required
This is because the two rows have indexes
1
and2
but the data being submitted for validation has indexes0
and1
.The text was updated successfully, but these errors were encountered: