Home › Forums › General Issues › Select default value › Reply To: Select default value
It doesn’t work the way you’re trying to use it.
The choices field does not allow you to enter a empty value.
When you set Allow null
to No
ACF does not add a - Select -
item so that a value is always selected. You can set the default if you don’t want the first one selected.
When you set Allow null
to Yes
ACF does add a - Select -
item so that the user does not need to select a value.
There have been some discussions in the past here about using an acf/load_field filter to alter the selections to include a null/empty value when a field is required, but I’ve been looking for it and could not find it. You could try that, see http://www.advancedcustomfields.com/resources/dynamically-populate-a-select-fields-choices/
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.