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
Shivangi VermaShivangi Verma 

Lightning component causing field values to vanish on calling page.

I have a lightning component with two buttons :  Won and Lost set to change the value on Opp object. If the reason field is empty  and you Press Lost button it flashes a validation message. If the reason field has value then it changes the state to Lost but clears the value of the field after saverecord. I am using LDS to save the record. Please let me know if what could be the issue here.
MagulanDuraipandianMagulanDuraipandian
Put debug log to find the issue. There may be a field update, trigger, process builder or flow which may change the value to blank.
--
Magulan Duraipandian
www.infallibletechie.com