Home › Forums › General Issues › Conditional for tags
Hello to all
i would like to create conditional fields for tags
Problem is that i don’t need them all
i want three dropdown fields for example which should be:
Page 1
Page 2
Page 3
with few tag inside each
Page 1 has tags: custom1 custom2
Page 2 has tags: custom3 custom4
Page 3 has tags: custom5 custom6
I hope someone will point me in right direction how is the best way to do this correctly
Regards!

Hi @dnikola
I’m afraid I don’t understand your query. Could you please explain it in more details and share some screenshots of the current state? Also, could you please let me know the example of your goal?
Thanks 🙂
Hi thanks for your replay.
Actually i have some pages and and position on them, in which are visible post taged with specific tags
i want to enable users metabox in which they will have option to check tag and with that tag they will be able to position post on that position.
Since they have 5-6 pages with few tags for each i would like to make them drop down menu for pages PAGE 1 / PAGE 2 and etc
when is selected PAGE1 in check box area will be shown TAG 1 TAG 2 and etc
when is selected PAGE2 in check box area will be shown TAG 5 TAG 10 and etc
end for every page different tag
I must say i would like to keep also current meta tag box
Thanks!

Hi @dnikola
If I get it correctly, I’m afraid you need advanced JavaScript code to do that. There’s an old tutorial that discusses this topic, but I’m not sure if it is still working or not. You can check it out here: https://www.bobz.co/dynamically-populate-select-fields-choice-in-advanced-custom-fields/.
I hope this helps 🙂
The topic ‘Conditional for tags’ is closed to new replies.
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.