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!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
199 | |
52 | |
41 | |
39 | |
35 |
User | Count |
---|---|
263 | |
86 | |
71 | |
69 | |
66 |