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

Patch label from gallery

ForAll( collSelOptions,
Patch('Vote', Defaults('Vote'), {Title:selName, Name_:varUser.FullName, Date:Today(),}));

How do I put a gallery label and patch it. When I try to patch the label text it only patches the same number. When the checkbox is checked it should patch through that label.

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User III
Super User III

If you are Patching from the Gallery:

ForAll(Gallery1.AllItems,
If(checkbox1.Value=true,

Patch('Vote', Defaults('Vote'), {Title:Label1.Text,

Name_:User().FullName,

Date:Today()}))

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

4 REPLIES 4
eka24
Super User III
Super User III

Is the button for the Patch inside or Outside the Gallery. Please show a screenshot

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

The button for the patch is outside. Inside the gallery has the all of the labels. Annotation 2020-07-29 122028.jpg@eka24 

eka24
Super User III
Super User III

If you are Patching from the Gallery:

ForAll(Gallery1.AllItems,
If(checkbox1.Value=true,

Patch('Vote', Defaults('Vote'), {Title:Label1.Text,

Name_:User().FullName,

Date:Today()}))

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

I just realized your solution makes another feature in my app not work. I need to include the collseloptions. @eka24 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,667)