I have a datacard with two checkboxes. I have the default value of the datacard set to Checkbox1_2.Text||Checkbox1_2.Text. This doesn't work because it just takes the text. My first checkbox is works the other is fails. How can I make it so if the first checkbox is selected the datacard says works and if the other is selected it says fails. I also tried putting DataCardValue4.Text = "Works" on the OnCheck property of the checkbox but that didn't work either.
Solved! Go to Solution.
Hi @powerapps890 ,
I assume the below If statement won't work then?:
If(Checkbox1_2.Value=true, "Works","fails")
that is how i'd do it 🙂 if this works for you feel free to mark is as a solution!
OnCheck is an action, it is not a property. If you want your Checkbox to default to some other condition, then set the Default property of the Checkbox control to: DataCardValue4.Text = "Works"
I hope this is helpful for you.
Hi @powerapps890 ,
I assume the below If statement won't work then?:
If(Checkbox1_2.Value=true, "Works","fails")
that is how i'd do it 🙂 if this works for you feel free to mark is as a solution!
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
187 | |
70 | |
49 | |
36 | |
25 |
User | Count |
---|---|
239 | |
111 | |
89 | |
88 | |
66 |