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