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 Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,980)