You need to sign in to do that
Don't have an account?
test vijay
I want old value and new value using getRecord in lwc
Hello Developers.
I have a Lwc Component that is on recordPage.I want to old value and new value that is changed when Record is update.
Can anyone suggest me how to achieve it.
Thanks in advance
I have a Lwc Component that is on recordPage.I want to old value and new value that is changed when Record is update.
Can anyone suggest me how to achieve it.
Thanks in advance
Here is the sample code, that get old and new values of account object and display it in a account detail page.
whenever the account record is updated, this component shows the old values and the updated new values for name , phone and email field
HTML:
JS:
Remember, the old values are stored temporarily in JS class, and it will be removed if the component is rerender on the page.
To have permanent old values, try creating a child object that has record with old values.
Thanks
Surya G