Wednesday, January 22, 2025

How to set a screen as default/first screen in power app


To set a specific screen as the default or first screen in Power Apps, follow these steps:


Step 1: Identify the Desired Default Screen

  1. Ensure the screen you want to set as the default is added to your app.

Step 2: Set the Default Screen in the App's StartScreen Property

  1. Select the App object:

    • In the Tree View (on the left), click the topmost item labeled "App."
    • Alternatively, click the app name in the top-left corner of the Power Apps studio.
  2. In the Properties pane on the right, locate the StartScreen property.

  3. Set the StartScreen property to the name of the screen you want to use as the default:

    ScreenName

    Replace ScreenName with the actual name of your screen (e.g., HomeScreen or MainScreen).


Step 3: Save and Publish

  1. Save your app: File → Save.
  2. Test it by clicking Play to confirm that the app opens with the specified screen.

Step 4: (Optional) Redirect to the Default Screen in the OnStart Property

If the StartScreen property is not available (in older apps or scenarios where you use logic):

  1. Select the App object in the Tree View.
  2. In the OnStart property, add the following code:
    Navigate(ScreenName)
    Replace ScreenName with your desired screen name.

Now, the selected screen will be the first one shown when the app starts. Let me know if you face any issues!

No comments:

Search This Blog