So I'm dealing with quite a weird issue with ACF.
- I have field B, which is set to appear only if field A == true. If A == true, B appears and I can change its value.
- In a given post, I have A == true and then I set a value to B. I save the post. All is well with the world.
- I then change my mind and I find that I do not want to have A == true, I want A == false. Field B disappears, as expected.
Problem: While field B disappears as expected, its value is still saved in the post and its still showing in the frontend.
My expectation: Since field B is hidden, it should have its value erased.
Has anyone else faced this issue? Am I wrong to expect that behaviour?
The behavious is as it is and this has the advantage, that when switch A back to true, B has it's old value again.
So you have to an if query in your code to use B only if A == true.