Field Actions - On Update
If you want to perform action whenever the value of a field is modified, you can write an on update script for that field. The on update script is executed after the changed data is persisted in the database.
The On Update script will not be called if fields are updated using custom actions in view.
// specify deluge code to be executed
Let us take the example of a Feedback Application form. In the below sample, whenever the status of a feedback is updated as Closed, a mail will be sent to the person who had reported it.
if (input.Status == "Closed")
From : zoho.adminuserid
To : input.Your_Email_Address
Subject : "The feedback you had sent has been incorporated in zohocreator"
Message : "The details are as below" + "Category " + input.Feedback_Category
+ "" + "Comments " + input.Comments
Go to https://creator.zoho.com/sampleapps/script-actions/#View:On_User_Input_View and edit any record. There is a hidden field that captures the new updated value in its field. Below code was written in the On Update section.