Home › Forums › Front-end Issues › Hidden-by-conditional-logic get posted and create problems. › Reply To: Hidden-by-conditional-logic get posted and create problems.
Yep I tried the elseif approach and I can comfirm it only shows 1 value, but there is still something I need to clear up, when a post get edited it shows the old value in some cases, for example I had a bus with the following info:
Make : Avia
Model : Preslav
The output was : Avia:Preslav
Now I updated it to:
Make : Daf
Model : Leyland
The output is : Daf:Preslav
How can I clean up the old fields on post edit, using the save_post or pre_save_post filters? What should I be looking for.
Also is there a way to remove the values from hidden fields with js if there is class ‘acf-clhi’ instant, like on Choice 2 – Text field 1 get val(“”) because there is class ‘acf-clhi’.
Thanks for your answer again, it is the one that solved my question I will mark it as a solution, but I would be really thankfull if you could help me with this either. 🙂
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.