How can i change value of a custom field based on a selection from another custom field?
The situation is as follows:
I have got a custom field with three options : yes, no , pending
After i have selected an option , a value should be inserted into another custom field.
So, if i select "yes" my other custom field should display value 1
If "no" it should be value 2 and "pending" should leave it blank (or unchanged)
Aforementioned action should happen when i edit existing post.