Hi guys, just need your help on how to do this.
I have 5 checkboxes on a screen, let's say Checkbox1, Checkbox2, Checkbox3, Checkbox4, and Checkbox5
For example if user tick the Checkbox1, Checkbox3, and Checkbox5
How to check which checkboxes are ticked and get its value?
If I want to save the data to Excel in different row, is it possible?
What I mean, is something like this:
Excel:
Row 1 = Value of Checkbox1
Row 2 = Value of Checkbox3
Row 3= Value of Checkbox5
Thanks for any help, I did some search ForAll syntax is able to do it but i'm still confused just started learning about this PowerApps. Thanks again.
Solved! Go to Solution.
Hi @sirch2020 ,
if you want to save the checkbox values to different rows, please try put the following Patch() function to OnCheck property of check box. Save the check box value to a new row when chekc box is ticked.
Patch('Table Name', Defaults('Table Name'), {ColumnName: CheckBox1.Value}) // CheckBox1.OnCheck
Patch('Table Name', Defaults('Table Name'), {ColumnName: CheckBox2.Value}) // CheckBox2.OnCheck
Hope this helps.
Sik
Basically, i'm looking for ways on how to add values of checkboxes into an Excel sheet on different rows?
1st row = value of 1st checkbox selected
2nd row = value of 2nd checkbox selected
The order does not really matter as long as it is on different rows,
Is datacard suitable for this?
Sorry just beginning on PowerApps, thanks for any ideas and help.
Hi @sirch2020 ,
if you want to save the checkbox values to different rows, please try put the following Patch() function to OnCheck property of check box. Save the check box value to a new row when chekc box is ticked.
Patch('Table Name', Defaults('Table Name'), {ColumnName: CheckBox1.Value}) // CheckBox1.OnCheck
Patch('Table Name', Defaults('Table Name'), {ColumnName: CheckBox2.Value}) // CheckBox2.OnCheck
Hope this helps.
Sik
Thanks Sik 🙂
Hi @v-siky-msft ;
I read your comment and i have the same question, i have three checkbox and i want to save value in excel table once i check one of the them. thanks.
User | Count |
---|---|
253 | |
113 | |
92 | |
48 | |
38 |