Automatically change a field value on any value change in the form

I have an Approval Status field which can be either verified or pending or rejected. It is pending by default once the form is created.

My admin user manually changes the field to verified after checking the data.

I now have a case that if a different user (other than admin)changes any of the values in my form, the value should automaticaly change to pending. How can this be done ?

1 Like

Are you familiar with Frappé’s hooks API?
https://frappe.io/docs/user/en/guides/basics/hooks

You would need to write some python code for your doctype, but it should be relatively simple to make a field change values on_change, for example.