Showing results for 
Search instead for 
Did you mean: 
Post Prodigy
Post Prodigy

Replace Yes/No control with image?



Is it possible to replace the Yes/No toggle control with an image?


For example, click on an image and its background colour changes from blue to red.

Where red equals yes and blue equals no.







Hi @sudosaurus 


To achieve such a behavior on the app, you can add the configuration in below manner:

1) Add the toggle control and set it fill property in a way where it is overlapping with the image but not showing anything. Set to RGBA(0,0,0,0)

2) On the fill property of the Image Control, add the below expression:

If(ToggleName.Value , Color.Red, Color.Blue)


Note: Color.Red will put red color whereas Color.Blue will show blue color.



Hope this Helps!


If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!




Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,884)