Announcements
Hi
I am using the value of a toggle switch to change the templatefill color of a gallery.
If(And(ThisItem.CraHotFormat=2;Toggle2_2.Value=true);LightGreen;If(And(ThisItem.CraHotFormat=3;Toggle2_2.Value=true);LightCoral;WhiteSmoke))
Powerapps say this function is not possible. Mark Toggle2_2 with green.
How can I change this?
Regards
Tony
If(
ThisItem.CraHotFormat=2 && Toggle2_2.Value = true;
LightGreen;
If(ThisItem.CraHotFormat=3 && Toggle2_2.Value=true;
LightCoral;
WhiteSmoke
)
If you need additional help please tag me in your reply and please like my reply.If my reply provided you with a solution, pleased mark it as a solution ✔️!Best regards,Gonçalo NogueiraCheck my LinkedIn!Check my User Group (pt-PT)!Last Post on CommunityMy website!
Hi @Nogueira1306
Thank you for your answer.
Both my solution and your solution are working.
But powerapps mark Toggle2_2 with green, and comment that this solution is not supported
Print please
I dont want that.. I already know the code... Print from the Item/Gallery
Gallery connected to sharepoint
Gallery with toggle2_2
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 379 Most Valuable Professional
11manish 203 Super User 2026 Season 2
MS.Ragavendar 128 Super User 2026 Season 2