# QR Code or Barcode Generation But Different

**URL:** https://community.thunkable.com/t/qr-code-or-barcode-generation-but-different/2743690
**Category:** Questions about Thunkable X
**Created:** [December 8, 2023, 10:18pm UTC](https://community.thunkable.com/t/qr-code-or-barcode-generation-but-different/2743690 "2023-12-08T22:18:25Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![nerdynerdzubbokr](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@nerdynerdzubbokr](https://community.thunkable.com/u/nerdynerdzubbokr)
#### Post date: [December 8, 2023, 10:18pm UTC](https://community.thunkable.com/t/qr-code-or-barcode-generation-but-different/2743690/1 "2023-12-08T22:18:25Z")

</div>

Hi guys,

Thanks for stopping by. So I’m not looking to create a standalone generation app, so my question is:

Does Thunkable have the ability to auto generate a QR Code or barcode that is unique to each user, and can be created during the signup process that will populate and be viewable in the customer’s account once it’s created?

I also want this code to remain with the user and the generator to never reuse the same code once generated and attached to a user

---

<div class="post-metadata">

### Author: ![Goldking](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/goldking/32/165073_2.png) [@Goldking](https://community.thunkable.com/u/Goldking)
#### Post date: [December 8, 2023, 11:13pm UTC](https://community.thunkable.com/t/qr-code-or-barcode-generation-but-different/2743690/2 "2023-12-08T23:13:47Z")

</div>

Take a look at the first solutions [HERE](https://community.thunkable.com/search?q=generate%20qr%20code)

For unique qr code, which data you want to save in the code ? Who can scan it? When you create the code you have to verify if it exists and generate a new one again

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [December 8, 2023, 11:19pm UTC](https://community.thunkable.com/t/qr-code-or-barcode-generation-but-different/2743690/3 "2023-12-08T23:19:56Z")

</div>

I don’t think this can be done from within Thunkable using the existing components. But you could definitely use an API to create the QR codes and retrieve them in the app or in a data source that the app has access to.

To make the QR codes unique, I would use the Firebase Sign Up/Sign In blocks in Thunkable which generates a unique user ID. And then I would send that to the QR code generator either as is or with extra characters (e.g. MyAppName\_UID\_34591023459).

In fact, here’s that same text as a QR Code I generated with the url [https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=MyAppName\_UID\_34591023459](https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=MyAppName_UID_34591023459) using the free QR Code generator at [https://goqr.me/api:](https://goqr.me/api:)

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/f/8f121feaa8180453aef26f7027888772a73c15eb.png)

---

<div class="post-metadata">

### Author: ![nerdynerdzubbokr](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@nerdynerdzubbokr](https://community.thunkable.com/u/nerdynerdzubbokr)
#### Post date: [December 9, 2023, 12:05am UTC](https://community.thunkable.com/t/qr-code-or-barcode-generation-but-different/2743690/4 "2023-12-09T00:05:22Z")

</div>

Thanks for the reply Goldking. So the info I want to save should be automatically created from the generator. What I want to create is membership IDs. Once a membership ID is created, I want to attach it to the individual who created the account and they can access it to be scanned say at a grocery store or gas station for example.

---

<div class="post-metadata">

### Author: ![nerdynerdzubbokr](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@nerdynerdzubbokr](https://community.thunkable.com/u/nerdynerdzubbokr)
#### Post date: [December 9, 2023, 12:06am UTC](https://community.thunkable.com/t/qr-code-or-barcode-generation-but-different/2743690/5 "2023-12-09T00:06:47Z")

</div>

You mentioned having the generator verify the existing codes, is there an article or video on how to do this? Thanks.

---

<div class="post-metadata">

### Author: ![nerdynerdzubbokr](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@nerdynerdzubbokr](https://community.thunkable.com/u/nerdynerdzubbokr)
#### Post date: [December 9, 2023, 12:16am UTC](https://community.thunkable.com/t/qr-code-or-barcode-generation-but-different/2743690/6 "2023-12-09T00:16:04Z")

</div>

Hi Tatiang,

Thanks for the reply. I like the idea of simply using the ID created by Firebase. Is there an article or video on how to implement this feature? Thanks.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [December 9, 2023, 6:36am UTC](https://community.thunkable.com/t/qr-code-or-barcode-generation-but-different/2743690/7 "2023-12-09T06:36:03Z")

</div>

> [@nerdynerdzubbokr](#):
>
> Is there an article or video on how to implement this feature?

I’m not sure if there is but it’s just basically joining the string “[https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=](https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=)” with whatever unique value you want. So you can use the join block in the Text drawer to join that string with the green `userId` block explained here: [https://docs.thunkable.com/v/snap-to-place/sign-in-1](https://docs.thunkable.com/v/snap-to-place/sign-in-1).

You’ll need to learn about Web APIs and Thunkable if you’re not familiar. I explain a lot of that – probably much more than you need – here: [API JSON Tutorial (Video)](https://community.thunkable.com/t/api-json-tutorial-video/1140575).

---

<div class="post-metadata">

### Author: ![Goldking](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/goldking/32/165073_2.png) [@Goldking](https://community.thunkable.com/u/Goldking)
#### Post date: [December 9, 2023, 7:44am UTC](https://community.thunkable.com/t/qr-code-or-barcode-generation-but-different/2743690/8 "2023-12-09T07:44:32Z")

</div>

As @tatiang said Firebase provides a valid and unique ID 👍🏻

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [March 8, 2024, 7:45am UTC](https://community.thunkable.com/t/qr-code-or-barcode-generation-but-different/2743690/9 "2024-03-08T07:45:32Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
