web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Passing checkbox value...
Power Apps
Unanswered

Passing checkbox value to flow

(0) ShareShare
ReportReport
Posted on by 340

Hi guys,

 

I have an app where we send either an SMS or Email (or both) to a list of clients. I want the ability to send one or the other (or both) based on a checkbox. In my flow I set a variable for each and on the switch I set the condition to true or false but the switch would not allow me to use the term "true".

 

da1ve_2-1667344073711.png

 

da1ve_0-1667344034026.png

da1ve_1-1667344044369.png

 

I then came across this article https://powerusers.microsoft.com/t5/Building-Power-Apps/Change-a-Text-Input-value-after-Save-on-Check-Uncheck-of-a/m-p/684747#M218927 

 

So this works in principal but when I try to submit, the flow doesn't run unless both options are "checked"

 

WORKS:

da1ve_3-1667344186353.png

DOESNT WORK:

da1ve_4-1667344205609.png

SMS = Checkbox3

Email = Checkbox6

 

SMS

Oncheck property of the checkbox: Set(var,true);Set(varCheck,"Checked");Reset(TextInput74)

OnUncheck property of the checkbox: Set(var,true);Set(varCheck,Blank());Reset(TextInput74)

 

EMAIL

Oncheck property of the checkbox: Set(var,true);Set(varCheck2,"Checked");Reset(TextInput75)

OnUncheck property of the checkbox: Set(var,true);Set(varCheck2,Blank());Reset(TextInput75)

 

The default property is set to:

TextInput74: If(var,varCheck)

TextInput75: If(var,varCheck2)

 

Any suggestions how I would "pass" a default value if (for instance) email was unchecked? Like TextInput75 had a default value of "unchecked" and when Checkbox6 is selected, the value of TextInput75 changed to "Checked" - or is there a better way to do this?

 

Thanks,
David

Categories:

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard