Home › Forums › General Issues › Output image depending on field selection › Reply To: Output image depending on field selection
Again, that would depend on what field you are changing the value of.
If you want to alter the value returned by the select field then you should use acf/format_value with a priority > 10. If you change the value of the select field before ACF formats it then it will return NULL if that value is not one of the selected options.
On the other hand, if you want to select field to return a URL then just use the UEL as the value when creating the options of the select field
{URL OF IMAGE 1} : Red
{URL OF IMAGE 2} : White
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.