Skip to content

Confusing message when empty email value is submitted, should mention "email" not ": This value" #73

Closed

Description

@jerclarke

Describe the bug

Hi all, it's SO GREAT to see this plugin being actively developed again! I don't know who motivated it, but I was delighted to see there were updates for recent WP, AND fixes for long-running error log notices etc. Thanks so much!

On to my bug: A stakeholder in our org got confused when they clicked the "subscribe" button on the outward facing form, expecting to be taken to the page, and got this error in the form:

: This value should not be blank.

Screenshot 2024-10-25 at 8 14 53 AM

They thought something was broken about the form.

Admittedly, they clicked a submit button on a form with no data, but at the same time, I think this error message is needlessly confusing.

If I submit with an invalid email such as ddd, I get the following error instead:

Email Address: Please fill out a valid email address.

Screenshot 2024-10-25 at 8 16 12 AM

To me this is MUCH clearer, and I think they would have figured it out immediately.

So could we consider a more accurate message? Really, I'd just use the exact same message in both cases. An empty email is an invalid one, so asking them to "Please fill out a valid email address" applies in both scenarios.

Thank you for considering this request 🙏🏻

Steps to Reproduce

  • Go to the pulic-facing form
  • Click Subscribe without entering an email
  • See an error message that could be more clear about the issue

Screenshots, screen recording, code snippet

No response

Environment information

Latest version of plugin

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    type:bug
    on Oct 25, 2024
  2. added this to the Future Release milestone on Oct 28, 2024
  3. iamdharmesh commented on Oct 29, 2024

    @iamdharmesh
    Collaborator

    Thanks for reporting the issue, @jerclarke. A PR has been raised to fix this issue, and it will be included in the upcoming plugin release. Thanks a lot for your contribution to improving this plugin.

  4. modified the milestones: Future Release, 1.7.0 on Oct 29, 2024
  5. dkotter commented on Oct 29, 2024

    @dkotter
    Contributor

    @jerclarke The PR looks good in my testing and I've merged that in now, but if you have some time to test and ensure it works for your situation, that would be great.

  6. jerclarke commented on Oct 30, 2024

    @jerclarke
    Author

    Right on! Tested the patch and the message looks nice and clear to me 🙏🏻💪🏻🎉

  7. modified the milestones: 1.7.0, 1.6.2 on Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type:bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions