web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collecting all inputs ...
Power Apps
Answered

Collecting all inputs in a Gallery

(0) ShareShare
ReportReport
Posted on by

Hello, I have a multi-page form for users to fill out, and on one of the pages is a gallery with 5 rows and 6 columns. There are a total of 30 fields for the user to input information in this gallery, and I would like to push a button that collects all of the information into an organized collection. 

 

Is there a way to do this easily without manually collecting or patching the data from each cell individually? 

Categories:
  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @CSilva ,

     

    For sure there must be a way.

     

    Can you please share a screenshot and the Items property of the gallery to determine what exactly needs to be collected from the gallery?

  • CSilva Profile Picture
    on at

    Here's what the gallery looks like

    ss.png

     

    And here's the collection: 

    ClearCollect(colSection3, {Title: "1", ACD: "", Relationship: "", Name: "", SSN: "", DOB: "", Gender: ""});
    Collect(colSection3, {Title: "2", ACD: "", Relationship: "", Name: "", SSN: "", DOB: "", Gender: ""});
    Collect(colSection3, {Title: "3", ACD: "", Relationship: "", Name: "", SSN: "", DOB: "", Gender: ""});
    Collect(colSection3, {Title: "4", ACD: "", Relationship: "", Name: "", SSN: "", DOB: "", Gender: ""});
    Collect(colSection3, {Title: "5", ACD: "", Relationship: "", Name: "", SSN: "", DOB: "", Gender: ""})

     

    If they fill out some entries, I would just like to capture all of that data as easily as possible. 

  • Verified answer
    BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @CSilva ,

     

    The below should help you to easily collect the information:

    Clear(colSection3);
    ForAll(
     Gallery1.AllItems,
     Collect(
     colSection3,
     {
     Title: ThisRecord.Titlelabel.Text,
     ACD: ThisRecord.ACDDropdown.Selected.Value,
     Relationship: ThisRecord.RelationTextInput.Text,
     Name: ThisRecord.NameTextInput.Text,
     SSN: ThisRecord.SSNTextInput.Text,
     DOB: ThisRecord.DOBTextInput.Text,
     Gender: ThisRecord.GenderDropdown.Selected.Value
     }
     )
    );
    

    You still do have to substitute the name of the gallery and and the controls inside the gallery with the names you are using.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard