Announcements
Hi everyone,
I need help in resetting my text inputs inside a gallery every time the user clicks the reset icon.
Thank you.
Hi @JanCarla ,
You can use Reset function to set fields to their default value or set Blank() to those fields when you click on reset icon.
//On Reset Icon OnSelect Reset(ThisItem.TextInput1); //or ThisItem.TextInput1.Text = Blank()
Hope this works
The second one worked. However, it sets all the rows to Blank. It does not reset the values per row. Do you also know how to do it?
Can you try only adding the name of the control like,
TextInput1.Text = Blank()
I hope you have the Reset Icon in the gallery and not outside.
Unfortunately, it's still not working.
And yes, my reset icon is inside the gallery.
Hi @JanCarla,
Do you want to patch the value in the TextInput? Will it affect the data source you populate the Gallery with?
I think you need to write a Patch() function to reset the TextInput value once you click the reset button. If you could accept to update the field value corresponding to TextInput value in the Data Source, I think the Patch() function will do.
Set the OnSelect property of the reset button as below:
Patch(DataSource,ThisItem,{Field_Corresponding_To_TextInput:Blank()})
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 914
11manish 617
Valantis 598