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

  1. Write a patch
  2. Review
  3. Commit

User interface changes

The webform no longer accepts data that does not meet the FormValidation standards.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#2 3191178-2.patch1.3 KBidebr

Comments

idebr created an issue. See original summary.

idebr’s picture

Status: Active » Needs review
StatusFileSize
new1.3 KB

Attached patch restores the element_validate callback to prevent submission of invalid data.

  • idebr authored 49933cc on 1.x
    Issue #3191178 by idebr: Restore element_validate callback to prevent...
idebr’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.