Hi,
I have a custom textbox. The default property is set as SelectedItem.'Name'
If the user clicks on a gallery item, then the 'SelectedItem' variable is set to that record. And if the user clicks on 'new item' button then 'SelectedItem' is set to Blank.
The textbox shows the correct value for the first time. i.e the gallery selection or blank (when a new item). But the problem arises when i enter some text in the textbox (lets say 'abc'). Now if I click on 'new item' it still shows 'abc' and not blank even though 'SelectedItem' is set to Blank (when new item was clicked).
Use reset() function inside OnSelect property of the gallery and the OnSelect property of the new button to restore the text input control to the default value.
Reset(textinputcontrolname)
Hope it helps !
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2