Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve notice message for Min/Max options for the Checkbox field #449

Open
rodica-andronache opened this issue Jan 15, 2025 · 0 comments
Open
Labels
bug This label could be used to identify issues that are caused by a defect in the product. customer report Indicates the request came from a customer.

Comments

@rodica-andronache
Copy link

Description

I think it's related to this issue #242

Reported by this user https://wordpress.org/support/topic/max-checked-option-not-working-2/, if you have a Checkbox field, and set some specific Min/Max options, when you try to add the Product in the Cart, when you are outside of the Min/Max options, you get the message "The field is a required field" instead of a more suggestive message like "You are allowed to choose only 1 option".

Step-by-step reproduction instructions

  1. Add a Checkbox field with two options A and B
  2. Set the Min and Max values to 1
  3. Attach the PPOM field to a product
  4. try to add the product in the cart, with both A and B selected
  5. You see the message "The field is required" instead of saying that you are not allowed to choose two options

Screenshots, screen recording, code snippet or Help Scout ticket

Image
Image

https://wordpress.org/support/topic/max-checked-option-not-working-2/

Environment info

No response

Is the issue you are reporting a regression

No

@rodica-andronache rodica-andronache added the bug This label could be used to identify issues that are caused by a defect in the product. label Jan 15, 2025
@pirate-bot pirate-bot added the customer report Indicates the request came from a customer. label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This label could be used to identify issues that are caused by a defect in the product. customer report Indicates the request came from a customer.
Projects
None yet
Development

No branches or pull requests

2 participants