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 / When a status changes ...
Power Apps
Unanswered

When a status changes in a gallery text label from SharePoint List - I want to know how to write the coding so that it goes to diffrent Screens depending on what the status says.

(0) ShareShare
ReportReport
Posted on by 2
Hi, I have a gallery on my Home Screen where I have a text inside the gallery with status ”available” ”borrowed” or ”overdue ” text lable where i want to- depending on the status that is extracted from my SharePoint List- change which screen I get to when I click on that transparent Button that i created. 
 
For example, 
I have one status "Available" where I want the user to be directed when they click on my button to Edit Screen. But if the status is set on Borrowed or Overdue, I want them to be directed to the Detail Screen. Each Gallery options button of Available, Borrowed or Overdue can change status depending on what we choose on the Edit Screen.
 
Do you also know why my profile photo is only visible when i am on the computer but not on my phone?
 
Please don´t hesitate to ask if you don´t understand my questions.
 
Kindly

Eva Andersson in sweden

HomeScreen.jpg
Categories:
I have the same question (0)
  • Prabhakar_S Profile Picture
    735 Moderator on at

    Hi @ewiegirl1978 ,

     

    Give it a try,

     

    Assuming your gallery is named Gallery1 and the label showing the status is named StatusLabel.


    In the OnSelect property of Gallery:

    If(
    Gallery1.Selected.StatusLabel.Text = "Available",
    Navigate(EditScreen, ScreenTransition.None),
    Or(Gallery1.Selected.StatusLabel.Text = "Borrowed", Gallery1.Selected.StatusLabel.Text = "Overdue"),
    Navigate(DetailScreen, ScreenTransition.None)
    )

    With this setup, when you click on an item in the gallery, it will navigate to the appropriate screen based on the status of the selected item.

     

    Thanks!!!

     

    Please consider marking my response as the accepted solution if it successfully resolves your concern. If you found the information beneficial in other aspects, kindly express your appreciation by giving it a thumbs-up.

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @ewiegirl1978 

     

    you can also use switch to have more options:

    Switch(
     ThisItem.Status,
     "Available", Navigate(EditScreen, ScreenTransition.None),
     "Borrowed", Navigate(DetailScreen, ScreenTransition.None),
     "Overdue", Navigate(DetailScreen, ScreenTransition.None),
     Navigate(DefaultScreen, ScreenTransition.None) // Default case if none of the above
    )
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • ewiegirl1978 Profile Picture
    2 on at

    Hi, Sorry for late reply, I haven´t had the time to try until now. Unfortunately, I tried but it does not work. I still always get directed to the "Edit Screen" page instead of "DetailScreen1" when "Title7" is overdue or borrowed. If you look at my screen shot, Is there anything I have done wrong?

     

    ewiegirl1978_0-1717480922120.png

     

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard