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 TextInput Defaul...
Power Apps
Unanswered

Reset TextInput Default Barcode Reader value in Gallery

(0) ShareShare
ReportReport
Posted on by 2

Hello!

 

I'm building an app where the user can take in assets, the quantity of which is dynamic.

The assets fill a Gallery, which has a TextInput control and a BarcodeReader control. The TextInput Default value is the last Value of the BarcodeReader.Barcodes table. This way, the TextInput gets filled properly, but the scanned values don't reset even after navigating to another page and back. This is my problem, because in case of ~50 assets, the user has to manually clear all ~50 TextInputs.

 

Things I have tried (and didn't work):

- Storing the scan in a variable and making it Blank on reset (using variable caused every TextInput to overwrite its value on every scan)

- Storing the scan in a collection and clearing it (same as previous)

- Resetting entire Gallery control (resets TextInputs with manual value, but not the ones with scanned values)

- Navigating to another page before resetting (still no reset on scans)

 

Can anyone please provide a solution, or at least an idea?

 

Thanks!

 

Edit: Grammar.

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    hey @BenceGyori 

     

    you need to call the Reset(Textinput) for every text input control separately 

    either onselect of a button or onvisible of screen

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • BenceGyori Profile Picture
    2 on at

    Hello, @mmbr1606!

     

    Thank you for your answer, but unfortunately it didn't resolve the issue.

     

    I am using a Gallery, so there is only one editable TextInput, which already has it's value being reset on leaving the screen. The problem is that the TextInput successfully resets, but the Bardcode Reader's table containing the previous scans doesn't reset and I can't make it to do so. As I mentioned, I tried saving it to a variable and making it Blank() on reset, but since in that case the TextInput (and with that, all the TextInputs in the Gallery) have that variable on Default value, the next time the user scans something, all of the Gallery's TextInputs get that last scan as Default value.

     

    I have a Form in the same app, where this "Last scan to variable and Blank to reset" method works just fine, but not here, with a Gallery control. I am asking if there is any method to make it work, or am I trying to accomplish something which Power Apps doesn't have a solution for?

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard