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
Matthew Hayes 46Matthew Hayes 46 

Pop up Notifications

We need to create a pop up notification for some specific customer community users in our customer community.  When they log in this notification will display to them.  I am an admin not a dev, is that something I would be able to do or do we need a developer to create that.  
PriyaPriya (Salesforce Developers) 

Hi Matthew,

Check out a relatively new functionality called "Login Flows" .  With Login flows you can introduce new screens into the same login page that your users are used to.  There's no need for Visualforce nor jQuery, as Login flows instead require a flow "screen".  In a nutshell your flow would:
  1. Read the LoginFlow_UserId variable
  2. Do a record lookup on User with the LoginFlow_UserId variable.  The query would look for a custom checkbox that determines if the user accepted the terms and conditions yet.
  3. Display the terms and conditions on the screen with a checkbox input
  4. Once they accept, write the checkbox value to the user record.
  5. Also, all your queries and record updates should use a Fault handler action, otherwise you could potentially lock yourself out of your system.  Not that I've don'e that before or anything.

For more on login flows, see here: https://developer.salesforce.com/index.php?title=Login-Flows&oldid=103421 (https://developer.salesforce.com/index.php?title=Login-Flows&oldid=103421)

Regards,

Priya Ranjan

PriyaPriya (Salesforce Developers) 

Hi Matthew, 

Other alternative can be We can set the notification through template setting and it would work
Refer this link :- 
https://help.salesforce.com/articleView?id=sf.community_builder_enable_notifications.htm&type=5,

If the above information work, please mark it as best answer.

Regards,

Priya Ranjan

Suraj Tripathi 47Suraj Tripathi 47
Hi Matthew,
Greetings!

Please create a VF Page which shows the pop-up on page load.
Write a Javascript code inside VF Page that shows the popup.
Set that VF on the page on which you want to see the popup.
Set size of the VF Page is 0 (zero) which means VF Page is not visible but javascript will execute.

If you find your Solution then mark this as the best answer. 

Thank you!

Regards,
Suraj Tripathi