How to process an event only when value changed (to a target value) within an interface?

Hello,

I want an event to happen (send email) after submitting a user interface (form) only if a certain attribute has been changed. I figured that I would need the old and the new value of this attribute in the process.

What would be a good way to achieve this?

Thank you in advance

  Discussion posts and replies are publicly visible