I'm very new to Power Apps. I'm trying to populate a screen with data from a collection variable. The picker button works for the most part. I want to load the Image with the image in the collection. I tried this:
If( Not IsBlank(AddMediaButton1.Media), AddMediaButton1.Media, Not IsBlank(StepsView.Selected.Photo),StepsView.Selected.Photo, SampleImage)
This has an error that the statement is not returning an Image. However, these variations, which don't work, don't have errors:
If( Not IsBlank(AddMediaButton1.Media), AddMediaButton1.Media, SampleImage) // No Photo
If( Not IsBlank(StepsView.Selected.Photo),StepsView.Selected.Photo, SampleImage) // No Media
I have no control of the Button.Media. I can't set it, I can "Reset" it. Can I change "Photo" to something compatible with Media?