Create a QR code

Hello WeWeb community! Has anyone implemented a QR code using WeWeb? I’d like to create a QR code for specific pages on my app. For example, a user can create a list of recommendations. I’d like to provide the user the ability to print their unique QR code and when scanned, take the new user to their public page. URLs would be unique to each QR code and would be dynamically generated. for example: www.mydomain.com/user/X

Thank you!

1 Like

I did it easily with this :

2 Likes

If you or someone else is looking to solve this proble, I made a vid on making a QR code generator using the new NPM functionality: https://youtu.be/_g-pknCCbvk?si=TukSxUOboqxRPZ-Y

6 Likes

Thank you @raydeck !

Now I naturally wanted to get the generated QR code as a file to

  • change some elements (color)
  • download the file or send it to a record in weweb

I tried by adding

return qr.createDataURL(5);

to the javascript custom code, but it takes the whole weweb page elements :-/