Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Update collection with Gallery text

(0) ShareShare
ReportReport
Posted on by 178

Hi,

 

I have a gallery with values and an input box.

Input box has been added to my gallery which allows a user to input values.

 

When all values are completed I want to use a button to update my collection rows with all the individual values a user has put for each line.

 

The code below works but it doesn't update my collection with the correct values in my Error column.

 

I get the same value for all rows.

 

Any help is greatly appreciate.

 

Thanks

 

 

 

ForAll(
 'Reactive'.AllItems,
 UpdateIf(Reactive,Row = ThisRecord.Row, 
 {
 Error: [@'Input-Error ReActive'].Text
 }
 )
)

 

 

 

 

  • christian12 Profile Picture
    christian12 178 on at
    Re: Update collection with Gallery text

    Thank you.

     

    Unfortunately that doesn't work. I've tried that before.

     

    No values are stored in my collection.

     

    I'm using the on change to patch the values in the collection so that works for me.

  • Rajkumar_404 Profile Picture
    Rajkumar_404 557 on at
    Re: Update collection with Gallery text

    Hi @christian12 

     

    [@'Input-Error ReActive'].Text instead using this 'Input-Error ReActive'.Text.

     

    Try this formula,

     

    ForAll( 
    'Reactive'.AllItems,
    UpdateIf(
    'CollectionName',
    Row = ThisRecord.Row,
    {
    Error: InputBoxName.Text // Replace InputBox1 with the actual name of your input box
    } )
    )

     

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard