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 / 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
    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

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 739 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 268

Last 30 days Overall leaderboard