On_update call from the .js file


I want to call the on_update method from the .js file. Because currently, when i click on one of my custom button then it updates a field value.

Now if i am click on Update then it is updated. But if i click on my custom button then the value will be update and also call the on_update button for the specific doc.

How can i do this?

Thank You.

on_update method on the python side is called when the doc is updated. It doesn’t matter what triggered the update.
Can you share your code to help you better?

Yes. But I am handling to update my field value through the js file. So i want to call on_update from the js file.