Home › Forums › ACF PRO › Clear editor content depending on option › Reply To: Clear editor content depending on option
I realized that I wasn’t checking the value chosen in the select option at all. I only checked if the fields had content or not, thus when ACF saved both values it was also showing them and breaking the page. I made an assumption that the plugin takes care of that since I set up that conditional logic for the forms but there is no reason for it to do that.
Test and double test before going live, clients are really awful beta testers.
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.