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 / Form Field filled in e...
Power Apps
Answered

Form Field filled in either button or barcode scanner

(0) ShareShare
ReportReport
Posted on by 643

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:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    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
  • jamescosten Profile Picture
    643 on at

    Thank you very much Qi 🙂

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 490

#2
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 381

Last 30 days Overall leaderboard