- February 26, 2018 at 2:45 pm #25584saloni gupta #419
How to get the old value of a field in a Salesforce Apex Controller?
I have to access the old value of a field in Apex Visualforce Controller.February 26, 2018 at 3:41 pm #25586Shubham #950
You can get the old value of a field in Apex VF controller by writing following line of code in the constructor of your Apex controller.
oldRecord = controller.getRecord().clone();
If you want to do it only in Vf page then you will need to clone the original object.
Hope it may helps.February 27, 2018 at 4:06 am #25590
Please Register to reply to this topic. /