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
Sarah RobertsonSarah Robertson 

trigger lightning component field change

Hi 

I have a button on a lightning component that basically executes 

      window.location.reload()
         
I was trying to see if it is possible to call this action - either via process builder or a trigger. I can't seem to find a way so far :( 

Sarah 
Ramesh DRamesh D
What are you trying to acheive here?  
Sharat C 2Sharat C 2
To answer your question, No It's not possible. But what are you trying?
Raj VakatiRaj Vakati
You can do it by using the events in lightning .. based on the value change fire and event and consume the same event in other component 

https://trailhead.salesforce.com/en/content/learn/modules/lex_dev_lc_basics/lex_dev_lc_basics_events
https://developer.salesforce.com/blogs/developer-relations/2017/08/depth-look-lightning-component-events.html
https://www.mstsolutions.com/technical/salesforce-lightning-events/
https://www.sfdcstop.com/2018/03/events-in-salesforce-lightning.html