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

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.






Dual Super User II
Dual Super User II

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

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,069)