Home › Forums › General Issues › Prevent adding decimals in number field › Reply To: Prevent adding decimals in number field
I’m also trying to find a way to only allow an integer in a number field.
With John’s suggestion, the result is that only numbers <10 are allowed, and users can still input 5.000 when they want to input 5000 (am I making sense 😉 ? )
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.