Home › Forums › ACF PRO › Pre-populated incremented reference number field › Reply To: Pre-populated incremented reference number field
Typo on this line
if (empty($field('value'])) {
should be
if (empty($field['value'])) {
Can’t see typos easily here when adding code. There are other typos as well, I did not always spell references correctly. Sorry about these, I was just typing out a quick example and sometimes it happens.
All of the code should go in functions.php. Automating things can sometimes be difficult. You have to way the time it takes to do the automation vs how much time it will save.
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.