cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Checkbox save data to excel

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

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

View solution in original post

3 REPLIES 3
Regular Visitor

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.

Community Support
Community Support

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

View solution in original post

Thanks Sik 🙂

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,573)