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
Ananya DhimanAnanya Dhiman 

show a popup when a community user is logged in

Hi all, I need help with this task. 

I need to create a lightning component that will display a popup with some text lines, 2 checkboxes (text message and email) and a field named mobile number and a FINISH button.
This popup should be displayed only when a community user is logged in. I have created 3 custom fields on contact namely - text message(checkbox), email(checkbox) and mobile number(number) that will store the information of the user.
Whenever a user clicks on any of the checkboxes mentioned above, the popup should never appear. Also, when a user clicks the text message checkbox on the popup then the mobile number field should be mandatory. It is more like a consent popup that will allow uses to receive notifications via email or text. 

Your help will be much appreciated. 
Thanks in advance. 

MagulanDuraipandianMagulanDuraipandian
Check the below link. It has similar code for reference to implement.
https://www.infallibletechie.com/2020/02/how-to-show-popup-when-salesforce.html