Home › Forums › Feature Requests › Select Boxes : Return value type › Reply To: Select Boxes : Return value type
I don’t think that you can do this for different cases of the same field used on the same page. The only time you’d be able to alter this is when the field is loaded using an acf/load_field filter. This would effect the return value wherever the field is used after that, but you could set it dependent of a specific page, perhaps.
The best choice would be to always return both and then use the one you need.
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!
🚨 The 2023 ACF Annual Survey closes tomorrow! This is your last chance to complete the survey and help guide the evolution of ACF. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 18, 2023
© 2023 Advanced Custom Fields.