Notifications
Announcements
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?
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
do u have a code for that? I'm not really sure how to make it work.
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
I meant the code for the onscan property to save the retrieved values into three variables respectively and to reset.
For example, I assume there is a barcode:
{"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));
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.
The date picker control can only select dates and cannot select times.
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))));
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 739 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 268