web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Reset Gallery Text Inp...
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

 

 

Categories:
I have the same question (0)
  • AJ_vizMan Profile Picture
    on at

    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  

     

     

  • Allabasha Profile Picture
    85 on at

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

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @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

    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,297 Super User 2024 Season 1 on at

    @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

    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. 

  • Allabasha Profile Picture
    85 on at

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

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard