Skip to main content

Notifications

Power Apps - Building Power Apps
Suggested answer

Issue with repeating table using a collection for items

Posted on by 72
I have a vertical gallery with these properties:
I have a 2 x text fields (modern controls) and a checkbox in each row. I want to be able to add a row by either:
  • clicking the + Add buttonand it adds to the collection (and gallery)
  • or clicking the save Button on each row and it adds to the collection (and gallery).
This is adding a row but the problem is that it's keeping the values in the text field and not clearing them. 
I will share the properties of all buttons:
+ Button:
 
The save button on each row:
 
Ultimately I want to be able to submit this collection as JSON to a multiline column in SP so that's why there is no connection to SP involved (and I don't need there to be until I submit).
 
Can you see what I'm doing wrong here.
 
I've done this x100 odd times in the past but a bad nights sleep is contributing.
  • Suggested answer
    jpespena Profile Picture
    jpespena 294 on at
    Issue with repeating table using a collection for items
    Hi,
     
    You can reset the input fields by:
     
    Reset(TextInput1);
    Reset(TextInput2);
    Reset(Checkbox);
     
    Or use a local variable like:
    UpdateContext({locReset: false});
    UpdateContext({locReset: true});
    Then add locReset on the Reset property of the text input and checkbox controls.
     
     
    You can add either on the end of the function of the Save and Add button.
     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard