hi,
I am new to wordpress and ACF, and am trying to dynamically populate a select list/radio group – but then filter a further dynamically populated item list based on the selection of the first list.
I have read the https://www.advancedcustomfields.com/resources/dynamically-populate-a-select-fields-choices/ post and can populate both the lists with no problem, but is there any way I can add conditional logic for these from the code as well?
basically I want to hide one or more options from one of the lists based on the selection of the other.
any help much appreciated
thanks
Hi @natty
There’s an old tutorial that covers this topic. You can check it here: https://www.bobz.co/dynamically-populate-select-fields-choice-in-advanced-custom-fields/. I’m not sure if it still works or not, but you can always try it out.
I hope this helps 🙂
hi James
thanks for that, i’ll give it a go and report back..