Confusing error message

Open
#241 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
web-dev

Research direction

No files or tests are identified in the issue. Start by reproducing the min/max checkbox validation in the product addon and trace where its default error message is selected; done means the default message accurately describes too few or too many selections while custom messages still work.

Written by the indexing model from the issue text.

Description

medium

While working on a ticket, I noticed that the error message that appears by default is applied when min/max units are not respected.

The problem is that the default error message is "[field_name] is a required field", whereas the error, in this case, is that the user doesn't check enough checkboxes or checks too many.

image

I know we give the users the possibility of introducing their own error message, but I found this and considered it confusing.

Dominant language
PHP
Stars
15
Forks
9
Avg merge
3d 17h
Merged PRs (30d)
16

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Codeinwp/woocommerce-product-addon

All issues in Codeinwp/woocommerce-product-addon

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.