Home › Forums › General Issues › Select default value › Reply To: Select default value
Thanks for your guidance 🙂
Just so I understand you correctly, here’s a screenshot of my settings when creating the Custom Field:
And here’s a screenshot of how it appears to the user:
As you can see, -Select- is added, but it still gets ignored in favour of the first actually entry (Aberdeenshire). If I switch to this:
https://dl.dropboxusercontent.com/u/167786/acf-select-2.png (with allow null now set to ‘No’. Then the user gets this with no -Select-
With the first case I inspected the select box element and saw this:
As you can see the -Select- option is ignored and ‘Aberdeenshire’ is selected like so:
<option value="Aberdeenshire" selected="selected">Aberdeenshire</option>
I should also note I have tried both of those set ups above with a default value of null as here:
And also -Select – as here:
Is this what you’d expect to see based on your explanation above?
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!
ACF wouldn’t be so widely used in WordPress if it didn’t have some pretty amazing capabilities. In this article, we look at a few of the features we’ll discuss during “7 things you didn’t know you could do with ACF” at #WPEDecode later this month. https://t.co/5lnsTxp81j pic.twitter.com/Yf0ThPG1QG— Advanced Custom Fields (@wp_acf) March 16, 2023
© 2023 Advanced Custom Fields.