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 / Bar Code Scanner for d...
Power Apps
Answered

Bar Code Scanner for dropdown input value

(0) ShareShare
ReportReport
Posted on by 21

I have a PowerApp with dropdown values from a SP List; I have several cards that have dropdown values based on the first dropdown value. I would like to set up a scan button for the main dropdown input value, but still have the other dropdowns work with the scanned text input value. I hope this makes sense. 

 

EvaAGarcia_0-1627308316278.png

Example: SAP Equipment # populates FAA & Pump Name and other fields from a SP List.

Would like to scan SAP Equipment # and still populate the other fields.

 

Thanks for the assistance.

Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @EvaAGarcia 

    Change the visible property for the Camera and Barcode Scanner control. In this case, I have a combo box named "ComboBox1"

    BarcodeScanner and Camera Visible property is

     

    ComboBox1.Selected.Value="Critical"

     

     

    In this example, both are visible when combo box value is "Critical"

    StalinPonnusamy_0-1627315350310.png

     

    We can set it DisplayMode as well.

     

    "Please do not forget to give kudos if you find the suggestion helpful or Accept it as a solution if works fine to help other users to find it useful. "

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @EvaAGarcia 

     

    Please let us know if anything needs on your post. We can help with this.

     

    "Please do not forget to give kudos if you find the suggestion helpful or Accept it as a solution if works fine to help other users to find it useful. "

  • EvaAGarcia Profile Picture
    21 on at

    I finally have time to work on this scan feature. I'm not quite following what you have instructed.

    In your example is "Critical" your column name?

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @EvaAGarcia

     

    The previous one was to display the scan button based on the dropdown value. In that case, "Critical" is the choice value.

     

    Get Data based on Scanner Value

    We have 2 options based on the scan value using the scanner.

     

    1. Display individual data (Without form)

    Set the onscan property of the scanner

     

    Set(ScannedRecord, LookUp(DataSource,Barcode=Value(BarcodeScanner1.Value)))

     

     

    Set the label control to display FAA and pump Name

     

    FAADataCard.text = ScannedRecord.FAAColumnName
    PumpNameDataCard.text = ScannedRecord.PumpNameColumnName

     

    For Dropdown, Set the Default property as

    ScannedRecord.ChoiceColumnName.Value

     

     

     2. Display data on the form (Edit form)

    Set Item property of Form as 

     

    LookUp(DataSource,Barcode=Value(BarcodeScanner1.Value))

     

     and Datasource as SPListname or any data source

     

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
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard