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 / Collect Fill Different...
Power Apps
Answered

Collect Fill Differents TextInput in Gallery

(0) ShareShare
ReportReport
Posted on by 253

Hi Guys!
I have a collectio below built. I have a gallery called "Gallery3" and in this gallery line have two "TextInput": one "TextInput" called "AprovadorTXT" set with "ThisItem.AprovadorTXT" and another one called "StatusTXT" set with ThisItem.StatusTXT (the same name in my collection.

My problem is: when I click in the button where the collectios below is set in the "On select" property, the datas don't be in the same gallery line. Appears information in the textinput "AprovadorTXT" in one line and the information "StatusTXT" in the line below in the Gallery instead of appears in the same line in these text input.

 

After this I would like to add another button to send theses two fields information to Sharepoint columns called the same name of these two textinput "AprovadorTXT"and "StatusTXT". Ho formula can I use? Patch and collect?

Collect(
col_gallery;
{AprovadorTXT: Campo_texto_A.Text};
{StatusTXT: Campo_texto_B.Text}
);;
Reset(Campo_texto_A);;
Reset(Campo_texto_B)

Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at

    Hi @WendeReisss 

     

    Assuming your button is outside the gallery, you need to reference it by GalleryName.Selected.Campo_texto_A.Text or GalleryName.Selected.Campo_texto_A.Text to get the correct one. 

     

    And yes, you need to use a Patch if you want to add them to a SharePoint.  But you would have to decide if its an Update or a new one.

     

    I would have to know the name of the SharePoint List but

     

    in OnSelect
    
    Patch(ListName, Defaults(ListName), 
     {
     AprovadorTtxt: GalleryName.Selected.Campo_texto_A.Text,
     StatusTXT: GalleryName.Selected.Campo_texto_B.Text
     }
    );

     

     

    But that will add a new row every time


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • WendeReisss Profile Picture
    253 on at

    @FLMike 

    • Do I have to put "GalleryName.Selected.Campo_texto_A.Text" with Collection in the Button that I use the collection to fill gallery with information before?

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 426

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard