๐Ÿ™ˆScreen Visibility

In some applications, you may want to show or hide screens based on who is logged in. This is where the Screen Visibility Logic comes in. Let's take the example of a Task management app. Suppose we want to show a screen to create a New Task only for managers but hide it for other employees.

Before using the screen visibility, please ensure your app is private by selecting a users database. Learn how to do it here.

  1. Go to the screen you want to hide. You will see a section named, Screen Visibility Logic. Click on the + Add Logic button.

  2. Further, select the Role column (this could be different for your app) from your Users' database.

  1. Add a condition where the Role column's data is equal to Manager.

With this, when a user logs in to the app only if their Role property has the value Manager, they can see the New Task screen.

View as a specific user

To test screen visibility in the app builder, you can click the "View as" button in the top bar and select a user.

"Any user" means no user has been selected.

If a screen is hidden for the currently selected user, you will see a message on top of the screen.

Last updated