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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,218)