cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cnorris135
Helper IV
Helper IV

Add to Second Gallery

Got kind of a tricky question.

 

1.)  i have a form that gathers info.  I added a gallery that has a checkbox for classes that they can select(multiple).  I created a collection called "selectedclasses" to get all the info for the first signup person.  Here are the fields:

Name

Company

Class Count

Classes (checkbox in gallery)

SelectedClasses collection works.

 

2.) i added a button (Add Member) that can add a new member to signup for classes with the same fields above to a second gallery.  This is where im having issues.  How do i get the second gallery to capture new members by clicking button to add new people?  The second gallery is basically a class roster.

 

In the second gallery, im thinking

-(label)Name (Concatenate First Name, Last Name)

- (label) Classes ( this could be multiple selected checkboxes)

 

this is as far as i have got right now.......


ClearCollect(SelectedClasses, ??????)

 

 

1 REPLY 1
clare-sy
Frequent Visitor

You mean you want to click  an button,add one item to the second gallery ?

1) set the OnSelect property of the button :

Collect(SelectedClasses,{Name: ****, Company:****,Class Count: ***,Classes:checkbox.selected.***})

***depends on your textinput control's name.

 

2) besides, you need to set the 2nd gallery's datasource and Items property to collection SelectedClasses

 

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.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

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.

Users online (4,728)