cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User
Super User

Re: Patch label from gallery

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
Highlighted
Super User
Super User

Re: Patch label from gallery

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.

Highlighted
Post Prodigy
Post Prodigy

Re: Patch label from gallery

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

Highlighted
Super User
Super User

Re: Patch label from gallery

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

Highlighted
Post Prodigy
Post Prodigy

Re: Patch label from gallery

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

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (5,556)