[Form Validation] Errors on fields that don't have `rules` defined
type/bugfixed in next-release/nightly
# Bug Report
I defined Form Validation rules programmatically in some fields, not in all fields. Some fields are only optional, and they always they trhown errors like this for all fields unmapped:
` Form: Field identifier undefined not found
| overrideMethod | @ | installHook.js:1
| error | @ | semantic.min.js:11
| field | @ | semantic.min.js:11
| field | @ | semantic.min.js:11
| (anonymous) | @ | semantic.min.js:11
| each | @ | jquery.min.js:2
| each | @ | jquery.min.js:2
| isValid | @ | semantic.min.js:11
| form | @ | semantic.min.js:11
| dispatch | @ | jquery.min.js:2
| v.handle | @ | jquery.min.js:2
`
The console starts to show a bunch of errors like this. These errors are soft errors because they don't impact the behavior of the collection `Form`, but for enoing clients, they can argue it is broken. So, if possible, please give me one option to solve this in one setting. I found that we can put `data-validate="skip"` in all fields, but for me, who has a lot of fields in the platform, it can be difficult.
## Steps to reproduce
Defining programmatically Form Validation rules in some fields, not in all fields.
## Expected result
Ignore fields aren't ruled mapped
## Actual result
Throw errors for fields not ruled mapped
## Testcase
N / A
## Screenshot (if possible)
<img width="615" height="661" alt="Image" src="https://github.com/user-attachments/assets/1ce0743c-c68e-46bb-920b-cec962ee80e9" />
## Version
<!-- Include the version of the library you are using (required). -->
2.9.4
11 条评论