function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How to save the custom button clicked time in the field on the object????

Hello all,


I have an object,  on that there is a button called new when we click on the button it will open create page and when we save the record it will save the new button clicked time in the field available on the object.

How to achieve this can any one help me with this.


Thanks in Advance.



Jeff MayJeff May

If the button is really making a new record, you can write a WF Rule and Field Update to set your 'button clicked date/time' field to the record CreatedDate field.



Actually this is my requirement,


Can any one help me how to do this.


Need to capture the time at which the NEW button was clicked. 
Need to capture the time at which SAVE button was clicked. Write a custom script for the SAVE button to calculate the difference between time taken to click NEW and SAVE.