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
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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