QRcode : Url + data

Hello
I will take the time to explain :
this is a coach training website with subscribers

Today :

A subscriber starts an animation support that displays a QRcode and a session code (corresponding to a line in a database)

This session code is different for each subscriber. (for example 7F66A6)

Users (or players) scan the QRcode and then enter the session code. They can then participate in the animation which updates the database when they have validated their choice. (and the animation support of the subscriber updates in real time)

tomorrow :

I would like to automatically generate and display the QRcode which would contain the session code .

Thus, when the user scans the QRcode , I would like to be able to retrieve the session code so that the user no longer has to enter it.

So there are two questions :

  1. How to generate and display a QRcode that contains the URL+session code

  2. How to read the session code when the user has scanned the QRcode?

thanks a lot for your help :blush:

Back then there was an NPM that you could install and generate a qr code as an SVG (and assign it to a vector element).
When Wix upgraded the rendering engine, it stopped working, but I vaguely remember they wrote here it got fixed. I’m not sure though, but you should test it.
Any way, you can read my post here:

https://www.wix.com/velo/forum/main/comment/3bc6995e-eb49-32e9-80dc-138248b71d8f?postId=5db177e621f7b90017fc6370