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

Notifications

Announcements

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,393 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard