cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerapps890
Post Prodigy
Post Prodigy

Submit checkbox responses to sharepoint

In my gallery I have a description and checkbox. When the submit button is hit I want the persons name and description to come though on the sharepoint list. In the sharepoint list I have columns Description and name. I tried using 

ForAll(Checkbox1.value,

Patch('Removal', Defaults('Removal'), {Name_:varUser.FullName,Description:ThisItem.Description)});

but I couldn't get it to work. 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@powerapps890 

Please consider changing your Formula to the following:

Collect('Removal',
    ForAll(
        Filter(YourGalleryName.AllItems, Checkbox1.value) As galItem,
        Patch(Defaults('Removal'), 
           {Name_: varUser.FullName,
            Description: galItem.Description
           }
        )
    )
)

 

I hope this is helpful for you. 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

3 REPLIES 3
RandyHayes
Super User
Super User

@powerapps890 

Please consider changing your Formula to the following:

Collect('Removal',
    ForAll(
        Filter(YourGalleryName.AllItems, Checkbox1.value) As galItem,
        Patch(Defaults('Removal'), 
           {Name_: varUser.FullName,
            Description: galItem.Description
           }
        )
    )
)

 

I hope this is helpful for you. 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Capture.PNG

Here are all the errors I got when I tried that. @RandyHayes 

RandyHayes
Super User
Super User

@powerapps890 

The formula I provided is good an works, so you must have something that is not matching the names you have in your app.  

What is your Gallery name?  

Checkbox1 is in your Gallery?

The gallery has an items property that will have a Description in it?

varUser is valid and has a FullName property?

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (4,967)