back to blog
October 10 2022 • 10 min read


What if you want to display a toast message on a record page or a modal popup message to let the user acknowledge some information or launch a screen flow to let the user enter some values when certain criteria are met.

This challenge can be overcome by installing an App called PopUps in the AppExchange in Salesforce.

How to install PopUps app from Appexchange

  1. Click on this Link, you will be taken to the  AppExchange Page.

  2. Click the Get it Now button.

    pb 1

  3. Based on your requirement, you can install the app in the Production Environment or a Sandbox.

    pb 2

  4. If you want to install in a sandbox,  Click Install in Sandbox button.

    pb 3

  5. Check I have read and agree to the terms and conditions option → Click Confirm and Install button.

  6. It will take you to the Login Page.

    pb 4

  7. Enter the Username and Password → Click Login.

  8. You will be taken to the installation page. → Install for users based on the requirement, here we installed if for all users.

    pb 5

  9. Click Install.

  10. It should take some time to install and once it is finished click Done.

    pb 6

  11. Now the application is installed in the org and you can find it under the Installed Packages option.

    pb 7

Add PopUps Component to a record page

Open any Opportunity record

pb 8

  1. Open any record → Click Gear Icon → Click Edit Page.

    pb 9

  2. It will open Lightning App Builder → To the left of the canvas scroll down to bottom, you will see two components (PopUp / Modal) under Custom - Managed. The number in braces indicates the number of custom managed components available.

    pb 10

  3. Drag and Drop PopUp Component into the Page.

    pb 11

PopUp Features

After adding the component in the page, you can choose the type of Popup.

  1. Toast
  2. Modal
  3. Flow

Title : The title of the PopUp

Pop-up message or flow name : In case of Toast and Modal it is the message that should be displayed on the screen, and in case of Flow it is the flow API name.

Expiry Date : You can set the expiry time for the Popup, the format is (YYYY-MM-DD)

Toast Type : Success, info, other, warning and error

Toast Mode : They are of three types

  1. Dismissible (message will show up to the duration what you set and the

    user can close the toast message by clicking x) 

  2. Pester (message will show up to the duration what you set and fades away automatically)  

  3. Sticky (message will be visible till the user clicks the x)

Toast Duration : The duration in seconds for messages to be displayed on screen.

Set Component Visibility : Add filter and set visibility criteria for the component to be displayed. When the criteria is met the PopUp functionality will be displayed on the screen.


There are different types of toast messages available under this option. Please refer to the below image.

pb 12

Here we used the Info type toast messages. When the record type changes to lock record type, the info toast message will appear.

pb 13

 The visibility criteria is Record Type Idequals → “0127h000000UymcAAC” where 0127h000000UymcAAC is the record type Id of the Record lock record type.

pb 14

When the record type for a record is changed to the Record Lock the toast message automatically appears and it is dismissible.

Here is the toast message of Info type. 

pb 15


The modal is a popup which should be closed in order to perform any other operation on the screen. It forces users to look at the popup and close it.

Here we are going to display the modal whenever the amount filed on an Opportunity is left blank.

  1. Open Opportunity recordEdit Page

  2. Select Modal as the Type

  3. Enter Warning as Title name

  4. Enter Please Fill the Amount in the Pop-up message or flow name option.

    pb 16

  5. In  Visibility criteria add Amount field equals to 0, refer to the below image.

    pb 17

  6. Click Save.

  7. When a record which doesn’t have the amount value entered is opened, you will see a modal pop up with a message.

    pb 18


A screen flow can be launched when the criteria is met, so that the user will enter specific values in the screen and fill some values.

Select Flow as a Type.

Setup → select Flow →Click Drop down button on the right corner of the flow →  Click View details and versions → Copy Flow API name and paste it in the 

pb 19

In the Pop-up message or flow name option.

pb 20

The screen flow will be launched automatically when the visibility criteria is met and the user can perform the required operation.

Wrapping it up

In this blog we have covered all the features of the PopUps app from AppExchange.

Leave a Comment

Your email address will not be published

© 2024 Digital Biz Tech