⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

how to compare old value vs new value



Ron van den Bergh
  • profile picture
  • Member

Posted 18 June 2015 - 07:20 AM

Hi

 

I want to perform an action when a field changes from "new" to "done"

 

Is there a way of comparing the "Old" vs "New" value of a field?

 

or just query in beforeupdate?

 

thanks..


Paul Savostin
  • profile picture
  • Member

Posted 18 June 2015 - 09:42 AM

Hi! Just like you write - compare in before_update and set states - "new", "done", "old" and whatever you wish.