
Announcements
Hello there,
I need a hand with an expression here. I have a basic "Submission History" Gallery that shows items submitted in SharePoint. Because Powerapps doesn't support content types different content types, I have made an invisible choice column in each form that basically automatically selects the "Report Type". So now when I go to Submission history, I need an If statement to determine what navigation screen it will go to. This is what I tried on the On Select property of the Gallery:
If(BrowseGallery2.Selected.'Report Type'.Value="Incident Report", Navigate('View Secreen- Incident Report')
but obviously that didn't work. Any help would be appreciated!
I did this using a Switch() function on the OnSelect property of a gallery.
Switch(ThisItem.ReportType,"Incident Report",Navigate(Screen1))
You could do it using an If statement, but it would get messier the more values you look for since you would have to nest them in the "false" argument.
If(ThisItem.ReportType="Incident Report",Navigate(Screen1),false)