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
Peter CowenPeter Cowen 

increase a field on save

I am developing a visualforce page where I would like to increase a number field by a set amount when the form is saved. 

The field is Time_Spent__c. 

Alternatively we would like something that could get the time a ticket was picked up by an agent and the time when they marked it waiting customer response or closed then and work out the difference and then increase this field. 
Danish HodaDanish Hoda
Hi Peter,
The form would be a record on an object, you can add your logic to set a defined amount on before update trigger.