cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rix0
Frequent Visitor

Clear column in gallery

Hi all,

 

I have a gallery and want to clear a column after the user has submitted the data. I cannot get the gallery's column to be cleared as Reset, Refresh, UpdateContext.. are all not doing anything.

 

The gallery constitutes 6 columns (5 labels; 1 textInput), three of the columns (labels) are retrieved from a sharepoint, the other 2 are calculated based on the retrieved values and the provided values in the textInput column. I want to clear the textInput column after submitting. 

rix0_0-1670503785049.png

 

Thanks in advance!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
JP_Verolme
Resolver I
Resolver I

Hi rix0,
If I understand correctly, you want to reset the textinput bs? So that it is blank again on all rows of your gallery?
In that case you could create a button, with the OnSelect property set to: 

Set(VarResetBS, "")

Next, you set the Default property of textinput bs to:

VarResetBS

When you click the button, the textinputs in the gallery will all be cleared.
If this post helps, please click on the Thumbs Up below. and Accept it as the solution, so this could be helpful to others with the same problem.
Kind regards, Jan-Pieter

View solution in original post

1 REPLY 1
JP_Verolme
Resolver I
Resolver I

Hi rix0,
If I understand correctly, you want to reset the textinput bs? So that it is blank again on all rows of your gallery?
In that case you could create a button, with the OnSelect property set to: 

Set(VarResetBS, "")

Next, you set the Default property of textinput bs to:

VarResetBS

When you click the button, the textinputs in the gallery will all be cleared.
If this post helps, please click on the Thumbs Up below. and Accept it as the solution, so this could be helpful to others with the same problem.
Kind regards, Jan-Pieter

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,496)