Skip to main content

Notifications

Community site session details

Community site session details

Session Id : VtXiMcwyWC93iAt7kFir02
Power Apps - Building Power Apps
Unanswered

How to get QR code to automatically fill in my form

Like (0) ShareShare
ReportReport
Posted on 6 Feb 2024 02:25:26 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?

  • rytze Profile Picture
    56 on 06 Feb 2024 at 06:05:09
    Re: How to get QR code to automatically fill in my form

    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

  • v-bofeng-msft Profile Picture
    on 06 Feb 2024 at 06:01:08
    Re: How to get QR code to automatically fill in my form

    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 06 Feb 2024 at 05:55:43
    Re: How to get QR code to automatically fill in my form

    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 06 Feb 2024 at 03:29:14
    Re: How to get QR code to automatically fill in my form

    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 06 Feb 2024 at 02:54:19
    Re: How to get QR code to automatically fill in my form

    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 06 Feb 2024 at 02:47:53
    Re: How to get QR code to automatically fill in my form

    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 06 Feb 2024 at 02:38:40
    Re: How to get QR code to automatically fill in my form

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

  • v-bofeng-msft Profile Picture
    on 06 Feb 2024 at 02:36:40
    Re: How to get QR code to automatically fill in my form

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard