Posted by tomsherlock on September 27, 2010 at 4:46am
How do I remove a specific taxonomy term when the associated value in a CCK field is gone.
E.g. I have the field teacher. It's current value is Mr. Brown. It's new value will be Mrs. Violet.
The associated taxonomy terms are Ken Brown and Kendra Violet, respectively.
If I change the value from Mr. Brown to Mrs. Violet, I want to remove the taxonomy term Ken Brown and add the taxonomy term Kendra Violet.
However I need to know that the previous value was Mr. Brown in order to remove the taxonomy term Ken Brown. How do I do this?
I already know how to add a taxonomy term based in the associated new value selected in a field.
Thanks,
Tom

Comments
Let me explain a little
Let me explain a little differently what I want to do:
I get the value of a specific field.
I compare this value to the names of taxonomy terms associated with the current node.
I delete that taxonomy term.
Get the new value of the same field.
Compare this new value to the names of taxonomy terms.
If not found add the new term to the taxonomy.
Can this all be done with Rules only or Rules plus php?