Problem/Motivation

Webform PostcodeAPI performs form validation after a user has filled out the form. However, the browser can help users to enter correct data so the validation does not have to kick in as much.

Steps to reproduce

Proposed resolution

For better usability, use stricter input checks to prevent the user from entering invalid data.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

Add maxlength to input elements to prevent users from invalid data.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#2 3190829-2.patch2.79 KBidebr

Comments

idebr created an issue. See original summary.

idebr’s picture

Status: Active » Needs review
StatusFileSize
new2.79 KB

Attached patch uses stricter input checks to prevent the user from entering invalid data

  • idebr authored c9d5960 on 1.x
    Issue #3190829 by idebr: Use stricter input checks for better usability
    
idebr’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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