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
Kou XiongKou Xiong 

Can lightning component controller read field values?

Is lightning component able to read field values in the controller?

My situation:

I need the controller to read the value of a field value on a recordUpdated and initiate a flow if the field value is "Closed Won".

Is this possible?

 
Naveen KNNaveen KN
Yes, that is possible. 

In the lightning framework we have two controllers
1. client-side - js file 
2. server-side - Apex class 

Based on the action at the browser user interface, you can call a method in the client-side js file which can read the value of any field.

- Naveen K N