Home › Forums › General Issues › Select default value › Reply To: Select default value
Hi John,
Thanks for your guidance 🙂
Just so I understand you correctly, here’s a screenshot of my settings when creating the Custom Field:
https://dl.dropboxusercontent.com/u/167786/acf-select-1.png
And here’s a screenshot of how it appears to the user:
https://dl.dropboxusercontent.com/u/167786/acf-select-1-user.png
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-
https://dl.dropboxusercontent.com/u/167786/acf-select-2-user.png
With the first case I inspected the select box element and saw this:
https://dl.dropboxusercontent.com/u/167786/acf-select-3-user.png
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:
https://dl.dropboxusercontent.com/u/167786/acf-select-4.png
And also -Select – as here:
https://dl.dropboxusercontent.com/u/167786/acf-select-5.png
Is this what you’d expect to see based on your explanation above?
Thanks,
Kev
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.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.