Please help me in the approach.

I have a task object and a field called task executioner.I want to have timer set on the record. When the user will edit the record the timer will start and when it is saved timer will stop and time difference need to be calculated.

Can anyone help me how to achieve this.



I think you will have to create a visualforce page to achieve it. But again multiple scenarios come here, like what should happen if user again clicks edit after saving. Should we add the response time to the previous value?.

  • For now lets add the response time to the previous value.. – hellraizer Jun 24 '15 at 19:30
  • you have to create a visualforce page and override task new/edit buttons with this page. Then in the page you need to write logic to handle this. – Victor Jun 24 '15 at 19:32
  • Can u please provide me some logic to start with... – hellraizer Jun 24 '15 at 19:36
  • Create a field in the object to store value(Response_Time__c). Then in the constructor of the page, keep a variable to retrieve this value and assign to the variable. Also keep another variable time to save the time page loaded(constructor executed). Then in the save method add Response_TIme__c value with the difference of (saveTime - pageLoadTime) – Victor Jun 24 '15 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.