Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Reset Gallery Text Input Field

(0) ShareShare
ReportReport
Posted on by 85

 

Hi,  I wanted to reset the text Input value as it is showing the same name which we have searched and selected previously from the dropdown....How Do I Reset the Value ?

 

What I have tried is... before Coming to this page on Next button I have added this code... Reset(Searchuservalue).. but it is not working and throwing an error. Error : The function expects a ressetable control as its input.

 

Allabasha_3-1659452512742.png

 

 

Allabasha_1-1659452359191.png

Allabasha_2-1659452457608.png

 

 

  • Allabasha Profile Picture
    85 on at
    Re: Reset Gallery Text Input Field

    @Everyone, Please do look in to my query and help me to sort this issue. 

     

     

  • Allabasha Profile Picture
    85 on at
    Re: Reset Gallery Text Input Field

    Allabasha_0-1662490756229.png

    Hi Randy, Sorry I could not respond. I am giving the entire screenshot. Could you please check and help me with a solution on this I am still stuck and unable to proceed further on this. 

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Reset Gallery Text Input Field

    @Allabasha 

    Upon further looking at your picture though - you are trying to reset a label.  There is no need to reset a label.

    Circled in Red below is your label IN the gallery.  I believe it is the Search box that you want to reset - circled in Green.

    RandyHayes_0-1659476012445.png

     

    If that is the case, then that control is outside of the gallery and you CAN issue a Reset on that control.  I do not see it in any of your pictures to state its name, but that is the one you want to reset.  You don't need the variable trick to do it because it should not be in a gallery, it should just be on the screen.

     

  • Allabasha Profile Picture
    85 on at
    Re: Reset Gallery Text Input Field

    Hi Randy, 

     

    As Suggested I have updated the formula on the Select property for the next button as shown below...

    Allabasha_0-1659458602359.png

    and the 2nd one is to set your Reset property of the Searchuservalue TextInput to: lclResetItem

     

    This is something I did not understand where to update?

     

    Also, I am using People Gallery which will allow us to search for people who is part of Org and based on the search it will populate the results in the text box Search User value... as shown in the below screen shot.

     

    Allabasha_1-1659458770952.pngAllabasha_2-1659458786163.png

    I want to clear the above selection when I am placing a new request........ If user 1 placed a request by selecting his name from the user search list.....for request 1... it should not show the same for user 2 it should get cleared before user arrives to this page.... 

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Reset Gallery Text Input Field

    @Allabasha 

    You cannot reset a control that is inside of a gallery from outside of the gallery.

    It seems strange that you would have a Gallery to contain just a textinput for search.  You might want to re-evaluate your use of a gallery for this.

     

    That aside...

     

    If you were using a button, then you can set the Reset property of the SearchuserValue control to: YourButton.Pressed

    This would reset the text when the button is pressed.

     

    However, you are using an Icon, which does not have a Pressed property.  So, you need to utilize a variable.

    To do so, on your Icon OnSelect action formula you would add:  UpdateContext({lclResetItem: true}); UpdateContext({lclResetItem: false})

    This will quickly set the variable to true and then to false.

    Then, set your Reset property of the Searchuservalue TextInput to: lclResetItem

     

    This will reset the control in the gallery.

     

    I hope this is helpful for you.

     

  • Allabasha Profile Picture
    85 on at
    Re: Reset Gallery Text Input Field

    No, its not working I have tried updating on Visible property but it is not working in both the screens

     

  • AJ_vizMan Profile Picture
    on at
    Re: Reset Gallery Text Input Field

    Hi @Allabasha  - you can use 'On Visible' of the screen to reset the drop down.

     

    On MainScreen1.1 - use 'Reset(Searchuservalue)' under 'On Visble' of the screen  

     

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 770 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 494

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399