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 / How to Reset Text Inpu...
Power Apps
Answered

How to Reset Text Inputs inside a Gallery

(0) ShareShare
ReportReport
Posted on by 23

Hi everyone,

 

I need help in resetting my text inputs inside a gallery every time the user clicks the reset icon.

 

Thank you.

Reset Text Inputs inside a Gallery.png
Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    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

  • JanCarla Profile Picture
    23 on at

    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?

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    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.

  • JanCarla Profile Picture
    23 on at

    Unfortunately, it's still not working.

    And yes, my reset icon is inside the gallery.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 617

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard