Home › Forums › General Issues › ACF Dynamically populate a select field’s choices, even when values are the same › Reply To: ACF Dynamically populate a select field’s choices, even when values are the same
You can’t, all values must be unique. ACF stores the value/label pairs in an array like this:
array(
'value1' => 'label1',
'value2' => 'label2'
)
the values are the array indexes and array indexes must be unique. This is the same for any field type that can have multiple 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.