Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Form Field filled in either button or barcode scanner

(0) ShareShare
ReportReport
Posted on by 629

I have an app that can scan a tool using barcodes and populates the Current location field by using: BarcodeScanner4_1.Value.

jamescosten_0-1668699195938.png

 

What i would like is to have the current location to be populated by two buttons, so if you dont scan you just book out the location will be updated.

 

So the form will either populate with the scanned barcode or if you press the Book Out TOol button it fills the location in as "booked out"

Categories:
  • jamescosten Profile Picture
    629 on at
    Re: Form Field filled in either button or barcode scanner

    Thank you very much Qi 🙂

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Form Field filled in either button or barcode scanner

    Hi @jamescosten,

    Do you want to populate the CurrentLocation field either with scanner value or "Booked Out"?

    Could you please tell me the detailed condition to define which value will be populated?

     

    I just assume that you will scan the location if you don't click the book out button, so you need to set a variable to save the barcode scanner value or book out value.

    1). Set the OnScan property of the BarcodeScanner4_1 as below:

    Set(var1,BarcodeScanner4_1.Value)

    2). Set the OnSelect property of the Book Out button as below:

    Set(var1,"Booked Out")​

    3). Set the Default property as below:

    var1

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard