Announcements
Hello,
I have a SP list which I am using it as a form in Power app. I have one slider in it which is basically a yes/no field from my SP list. I want to send an email to manager whenever the value of that slider is changed from No to yes. I also have a button which is a basically a submit/update button. now I am not sure how to add the if condition to my slider so it sends an email out to a user. Please Help !
Hi @jasminepatel90
You would just use an If statement to apply this logic.
// Condition If( toggle1.value = true, // If condition is true send the email // If contidion is false do something else/or do nothing )
Please tick Accept as solution if the answer is useful.
Thanks,
@AARON_C
@AARON_C Thank you for your response now do I need to use a variable or without it I can just use this on the toggle ?
@jasminepatel90
I assume when you click the submit/update button this is when the email gets sent. You can just use the <toggle1.value = true> to do this.
@AARON_C so I want the email to go out on the click of a slider not a submit button and also I have a column in SP list which is a people picker column for managers. so when the slider is true it should send out an email to that manager
You can still do this using the OnChange property of the toggle control.
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 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Haque 85
WarrenBelz 76 Most Valuable Professional
Kalathiya 38 Super User 2026 Season 1