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
Brian11Brian11 

Open a lightning modal when Clicked on a contact

Hey is it possbile to open a modal when a contact is clicked and lands on the record page base on a condition?

What i want is the following:
When a contact goes to their record page. A flow/process or manual lightning component checks if the user has all data required. If not it will have to fire an apex method to generate all objects and all data required.
Meghna Vijay 7Meghna Vijay 7
Hi Brian,

What you can do is create a lightning component and add it to the Contact's Lightning page by editing it (Contact record page in lightning -> Gear Icon -> Edit Page -> Add Component) and set it's visibility -> Not visible and on component load check if the user has all data and if it doesn't you can fire an apex method using the same controller class.
Hope it helps, if it does mark it as solved.
Thanks