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 / How to get QR code to ...
Power Apps
Unanswered

How to get QR code to automatically fill in my form

(0) ShareShare
ReportReport
Posted on by 56

rytze_0-1707186240811.png

I am trying to get the QR code to scan for those fills and automatically fill in the form. the ID, Date and time of the QR code was scanned. How do I achieve this?

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @rytze ,

     

    You could set the BarcodeReader's OnScan property to save the retrieved values into three variables respectively, then set these three variables as the default values for your controls, and finally reset these controls. This way, you can achieve automatic form filling after scanning a QR Code.

     

    Best Regards,

    Bof

  • rytze Profile Picture
    56 on at

    do u have a code for that? I'm not really sure how to make it work.

  • v-bofeng-msft Profile Picture
    on at

    Hi @rytze ,

     

    If you want to generate a QR code , please try :
    https://www.qrcode-monkey.com/#text

    If you want to generate QR code in canvas app, I think this link will help you a lot:

    PowerApps: Generating and Printing QR Codes out of my PowerApp

     

    Best Regards,

    Bof

  • rytze Profile Picture
    56 on at

    I meant the code for the onscan property to save the retrieved values into three variables respectively and to reset.

  • v-bofeng-msft Profile Picture
    on at

    Hi @rytze ,

     

    For example, I assume there is a barcode:

    vbofengmsft_0-1707190113425.png

    {"Machine_ID":"12345","Check_in_datetime":"2024-01-01T09:08:00Z"}

    The Formula should be:

    Set(Machine_ID,Text(ParseJSON(Last(Self.Barcodes).Value).Machine_ID));
    Set(Check_in_datetime,Text(ParseJSON(Last(Self.Barcodes).Value).Check_in_datetime));

     

    Best Regards,

    Bof

     

  • rytze Profile Picture
    56 on at

    does the check_in_datetime separate? because i need them filled individually like check_in_date and check_in_time. and how do i get the result cause im not getting anything. i have added empty text boxes next to the fill where the result should be at. 

    rytze_0-1707199103043.png

     

  • v-bofeng-msft Profile Picture
    on at

    Hi  @rytze , 

    The date picker control can only select dates and cannot select times.

    vbofengmsft_0-1707199076889.png

    In addition , if you want to get hours and minutes , please try:

    Set(Check_in_hour,Hour(DateTimeValue(Text(ParseJSON(Last(Self.Barcodes).Value).Check_in_datetime)))); Set(Check_in_Minute,Minute(DateTimeValue(Text(ParseJSON(Last(Self.Barcodes).Value).Check_in_datetime))));

     

    Best Regards,

    Bof

  • rytze Profile Picture
    56 on at

    I have changed my app and now i have empty text boxes to get the result in there instead, is there a way to get it automatically filled? i tried scanning the Qr code and couldnt get it to show

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