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
Sarah RobertsonSarah Robertson 

trigger save when field is changed

Hi 
I'm working on some triggers on quote line item, basically what i'm looking to do is when a user changes a single field or any field on the page it automatically triggers a save, without the user having to hit save. We have asked users to hit save so the triggers recalculate the values but if there is a way to do this automatically it would be so awesome and i would owe you a beer :) 
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Sarah Robertson,

May I suggest you please check the below link regarding Using Trigger.old & Trigger.new to detect when field values change. I hope it will be helpful.

Please mark it as best answer if the information is informative.

Best Regards
Rahul Kumar
Sarah RobertsonSarah Robertson

Thanks Rahul,

That is reallly helpful but I'm not sure it will push what i am trying to do . Will that work before the user hits save ? or do they have to hit save to activate the above trigger ? 

Thanks
 

Sarah 

GulshanRajGulshanRaj
Hi Sarah,

You have to go via VisualForce page to achieve this. 

Thanks
Gulshan Raj
Sarah RobertsonSarah Robertson
Thanks Gulshan, Do you know any links that explain the process I'm quite new to this .