You need to sign in to do that
Don't have an account?
Sarah 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 :)
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 :)
May I suggest you please check the below link regarding Using Trigger.old & Trigger.new to detect when field values change.
- http://www.jonathanbroquist.com/using-trigger-old-trigger-new-to-detect-when-field-values-change/
- https://salesforce.stackexchange.com/questions/11191/just-update-when-a-specific-field-changes
I hope it will be helpful.Please mark it as best answer if the information is informative.
Best Regards
Rahul Kumar
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
You have to go via VisualForce page to achieve this.
Thanks
Gulshan Raj