Required field errors not suppressed when using "previous" button

Created on 19 August 2021, about 3 years ago
Updated 16 January 2024, 9 months ago

Problem/Motivation

There is currently logic to check for required field validation errors and suppresses them. The related regex tests a validation error string for any word followed by " field is required." to determine that the error is for a required field. The "word" is the title of the field.

This works as expected if the title of the field ends in a word. However, if the field title ends in punctuation, a number, or a symbol, it is not matched and therefore not suppressed.

Proposed resolution

Update the regex to allow any characters to preceed the " field is required." text.

πŸ› Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Arrow Chicago

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024