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 / indicate the selected ...
Power Apps
Answered

indicate the selected image

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have 5 images and they are buttons. when the button is pressed, it displays details related to the image. I want the pressed image to be highlighted to show it's been selected. I tried doing something on the borders, but failed. im also thinking of putting a rectangle over the image so that it can pop up only when the image is selected, but I don't know how to achieve that. The images are not in a gallery so I cannot use template fill

Categories:
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Vhutali ,

    You could put a rectangle behind the picture with the overlap required showing for a border and then put on the Visible 

    ThisItem.IsSelected

    so when the item is selected, the outline would be visible.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • Vhutali Profile Picture
    Microsoft Employee on at

    thanks Warren.

     

    I managed to put the rectangle behind the picture. how do I make it appear only when selected? "Thisitem.isselected" is not working.

     

    if I am to apply PressedColor, what fomular do I use?

  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Vhutali ,

    As below - ThisItem.IsSelected (note character case) is the Visible property of the rectangleShowShadow.gif

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Vhutali Profile Picture
    Microsoft Employee on at

    Hi My images are not in a Gallery,they are just like icons

  • Verified answer
    WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Vhutali ,

    Like this?

    IconShadow.gif

     

     

     

     

     

    OnSelect of the Icons (1-4)

    UpdateContext({vVis:1})

    Visible of the Rectangles (1-4)

    vVis=1

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Vhutali ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Vhutali Profile Picture
    Microsoft Employee on at

    Hi warren 

     

    Not yet, I need something like what is on my attached picture. the rectangle has to change color when the pic is selected

    ow.PNG
  • Vhutali Profile Picture
    Microsoft Employee on at

    ow.PNG

     

  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Vhutali ,

    My post with the icons does that - am I missing something in your requirements?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Vhutali Profile Picture
    Microsoft Employee on at

    hi @WarrenBelz

     

    It works.

     

    thanks a lot

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard