ACF: If field contain a specific value, update value in another field programatically
how can I change the value of a field based on the value of another field programatically?
This other field has already a value but I need to replace / update it.
To be more precise:
If the Text Field named type
has value Houses AND another Text Field named service
has value 2, this should be updated in NOT AVAILABLE.
Or ...
If the Text Field named type
has value Parks AND another Text Field named service
has value 2, this should be updated in AVAILABLE.
Or ...
If the Text Field named type
has value Store AND another Text Field named service
has value 2, this should be updated in COMING SOON.
I read the update_field doc but I could not solve this.
Topic advanced-custom-fields Wordpress
Category Web