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

Validation of field number #928

Open
tomall opened this issue Sep 11, 2024 · 0 comments
Open

Validation of field number #928

tomall opened this issue Sep 11, 2024 · 0 comments

Comments

@tomall
Copy link

tomall commented Sep 11, 2024

Describe the bug
Validation of the number field does not work if we use it in a acf gutenberg block. It is about validating the maximum value of the field. Arrows work but I can enter any value and save.

To Reproduce
Steps to reproduce the behavior:

  1. Go to custom acf block with number field that has a set maximum value
  2. Click on number field and enter any value.
  3. Click save
  4. Validation did not catch the error and saved the post.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots or Video
If applicable, add screenshots or video to help explain your problem.

Code
Please drag and drop an export of your field group, option page, custom post type or taxonomy JSON here.
If your issue relates to ACF Blocks, please also provide a reproducable code example of your ACF Block including it's block.json so we can reproduce the issue.

Version Information:

  • WordPress Version 6.6.1
  • PHP Version 8.2
  • ACF VersionACF PRO 6.3.6
  • Browser Chrome 128

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant