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 / Change Image based on ...
Power Apps
Answered

Change Image based on Drop down

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

So i have a drop down menu and then an image below it.

 

I have all of my images saved in a connected onedrive folder in PNG format.

 

I want to be able to choose from the drop down list and then the image below it change based on that value.

 

E.G. If I select tree from the drop dow menu it finds the image named 'Tree' in the onedrive fodler fromt eh connection and displays it in the App.

 

This is currently only a development and will be linked trough SHarePoint in the future

 

Thanks in advance

Categories:
I have the same question (0)
  • Verified answer
    John_ Profile Picture
    13 on at

    I would look at implimenting a switch. (in the onchange of the dropdown)

    Switch(Dropdown.Selected.Value, 
    "Kittens", Set(Image, "kittens.png"),
    "Dogs", Set(Image, "dogs.png"),
    "Ponies", Set(Image, "ponies.png")
    )

    Otherwise instead of setting the image you could make image a visable parameter so 

    you'd have 3 images in the below example and set the images however you want them and just have the switch manage the visiable part...

     

    Switch(Dropdown.Selected.Value, 
    "Kittens", Set(kittensimagevisable, true),
    "Dogs", Set(dogimagevisable, true),
    "Ponies", Set(poniesimagevisable, true)
    )

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks John I will give this a go!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    How do i refference the images?

     

    Its not currently finding them?

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    So I have managed to do it by useing the exact sharepoint/onedrive link to the file as the switch result

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 339 Most Valuable Professional

#2
11manish Profile Picture

11manish 180

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard