Home › Forums › Front-end Issues › Accept only unique values › Reply To: Accept only unique values
I am wanting to prevent a user from entering a value that has already been entered. I am looking at John’s final code above. Does this go in the functions.php file or somewhere else? Will it create a new field type called unique value or will I have to edit the code whenever I create a new field that I want to restrict unique values?
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.