Set error message when required fulltext filter is submitted empty

Created on 24 April 2017, over 8 years ago
Updated 23 March 2023, over 2 years ago

In #2869121: Do not set an error message when "Fulltext search" filter fails its "Required" validation we removed the error message for exposed fulltext filters marked as "Required", so a clean form won't already set an error (breaking caching).
However, this "silent failing" is probably (I'd think – please weigh in here whether you agree or disagree, especially site builders!) not what you want when the visitor actually submits the form, since this will hide the message from the "Input required" exposed form style (in case that was used, as it probably should be) and display the "No results behavior" message/content. I'd say that's pretty confusing for the visitor.

Instead, I'd propose re-adding the error message for this case – i.e., only fail silently if there is no input at all, but if there is input and it's just empty for this filter, then do set a form error.

Opinions, pros/cons?

Feature request
Status

Active

Version

1.0

Component

Views integration

Created by

🇦🇹Austria drunken monkey Vienna, Austria

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