web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Changing the start scr...
Power Apps
Unanswered

Changing the start screen based on metadata value

(0) ShareShare
ReportReport
Posted on by 28

I have two power apps based on a SP list. The first is basically just a gallery listing all the records in the list. If you click a button on any record, it opens the second app, passing through the ID value from the list item and populating the fields on the app with the values from the list item.

 

My issue is that this second app has multiple screens, with different fields and buttons displayed, and I want the app to open to the appropriate screen depending on the value of the CurrentStatus field. I know I probably need an IF statement in the StartScreen value of the app, but I cannot figure out how to get it to look at the value of the SP field in that formula.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Hi @DeanM1985 ,

    You have not posted a lot to work with, however an example if you are sending the ID of the target record with a Parameter called id

    If(
     LookUp(
     SPList,
    	 ID = Value(Param("id"))
     ).CurrentStatus = "XXX",
     Screen1,
     Screen2
    )

    or if you have multiple options

    With(
     {
     _Data:
     LookUp(
     SPList,
     ID = Value(Param("id"))
     ).CurrentStatus
     },
     Switch(
     _Data,
     "XXX",
     Screen1,
     "YYY",
     Screen2,
     "ZZZ',
     Screen3
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard