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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / OnScan change text pro...
Power Apps
Answered

OnScan change text properties?

(0) ShareShare
ReportReport
Posted on by 87

Hello, I am making an app that scans barcodes of parts in a factory. Their are two barcodes. The first is the a location code and the second is the actual part. I have attached a photo of a gallery in the app that shows different Locations and their respective parts. I was wondering if their was a way when a location or a part number is scanned that a strikethrough can be placed over the text in the gallery letting the user know that part or location has already been scanned? Let me know what you think any help is much appreciated!

 

GalleryCapture.PNG

 

Categories:
  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @MaxWendorff ,

    Do you want to record the values that have been scanned?

    I've made a similar test for your reference:

    1)find the value of barcode that was last identified by the scanner

    LookUp(tablename,barcode=Barcode1.Text,loc)

    2)save the scanned values to a collection

    Collect(locvalue,{value:LookUp(tablename,barcode=Barcode1.Text,loc)})

    3)Set the label in gallery

    Strikethrough:  If(ThisItem.loc in locvalue.value,true,false)

     

    Then, if the value exists in the collection, the value will have a strikethrough.

     

    Here's a doc about scanner for your reference:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-barcodescanner

    The scanner's text property is the only one that can represent the value that has been scanned.

     

     

    Best regards,

    Community Support Team _ Phoebe Liu

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard