Problem/Motivation
In #3184146: Move ajax callback to WebformPostcodeAPI element the element_validate callback was removed. As a result, the webform now accepts data that does not meet the FormValidation standards.
Steps to reproduce
Proposed resolution
Restore element_validate callback to prevent submission of invalid data
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
The webform no longer accepts data that does not meet the FormValidation standards.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3191178-2.patch | 1.3 KB | idebr |
Comments
Comment #2
idebr commentedAttached patch restores the element_validate callback to prevent submission of invalid data.
Comment #4
idebr commented