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.
@Everyone, Please do look in to my query and help me to sort this issue.
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.
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.
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.
Hi Randy,
As Suggested I have updated the formula on the Select property for the next button as shown below...
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.
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....
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.
No, its not working I have tried updating on Visible property but it is not working in both the screens
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
WarrenBelz
770
Most Valuable Professional
stampcoin
494
MS.Ragavendar
399