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 / Image Control - Check ...
Power Apps
Answered

Image Control - Check Gallery

(0) ShareShare
ReportReport
Posted on by 81

Hello,

 

I am building an Asset Management tool.

 

I have an Upload Image control thats working and patching and displaying correctly (ViewAssets.Selected.Image - working).

 

I want to be able to change the image, I was trying: (Checking the gallery, but allowing me to swap image out if needed)

 

If(
!IsBlank(ViewAssets.Selected.Image),
ViewAssets.Selected.Image,
If(
IsBlank(AddMediaButton1_1.Media),
SampleImage,
AddMediaButton1_1.Media
)
)
 
Logically this seems sound but Im getting an error, EXPECTED IMAGE VALUE.
Categories:
I have the same question (0)
  • timl Profile Picture
    36,774 Super User 2026 Season 1 on at

    Hi @CraigRooney 

    The upload image control is a composite control and it's the image control that you need to reference (eg UploadedImage1) rather than the Media property of the button.

     

    timl_0-1717411288684.png

    Also, the Coalesce function should logically perform the same function as your 2 nested If statements.

    Coalesce(ViewAssets.Selected.Image,
     UploadedImage1_1.Image,
     SampleImage
    )

     

  • Verified answer
    CraigRooney Profile Picture
    81 on at
    If(IsBlank(AddMediaButton1_1.Media), ViewAssets.Selected.Image.Full, AddMediaButton1_1.Media)
     
    This ended up being the working formula. I needed to add Image.FULL to get it working. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard