QR Code - fillig up after scan

Pepe
New Member

Hello everyone!

I have a question that I couldnโ€™t find an answer to in the forum.

3X_a_7_a75fcb1baf857f26ce9bf6507adacaa1c9da61f7.jpeg

I have made a form in which the employee can enter the bike number (โ€œNumer naprawionego roweruโ€ field) and a field with the possibility of scanning a QR code (โ€œQR Kodโ€ field ). Is it possible that after scanning the QR code, the result will automatically appear in the โ€œNumer naprawionego roweruโ€ field (but this number can still be edited)?

The data format in the QR code is: โ€œhttp://ddd.cc/XXXXXโ€ where โ€œXXXXXโ€ = bike number.

I would like the return value in the โ€œRepaired bike numberโ€ field to be only XXXXX ( bike number ).

Solved Solved
0 4 180
1 ACCEPTED SOLUTION

Found it!

EXTRACTNUMBERS([QR Kod])

View solution in original post

4 REPLIES 4

Aurelien
Google Developer Expert
Google Developer Expert

Hi @Pepe

Yes

In โ€œNumer naprawionego roweruโ€ field, with Initial expression:
[QR Kod]

Cheers

Hello @Aurelien,

Thanks for answer!

Iโ€™m already a step closer. Unfortunately, now the entire QR code is pasted (together with โ€œhtttp: โ€ฆโ€). What should I do to make sure that only the number at the end will be pasted?

Aurelien
Google Developer Expert
Google Developer Expert

If you know in advance the structure of the value in the qr_code, you may want to use various expressions to get the numbers you are looking for.
The purpose, in this case, would be to break the structure then extract numbers, maybe concatenate some pieces of the breaking

Please see:

Found it!

EXTRACTNUMBERS([QR Kod])

Top Labels in this Space