# How to Change the QR code Status into "Already Used!" or "Already Scanned!"

**URL:** <https://community.thunkable.com/t/how-to-change-the-qr-code-status-into-already-used-or-already-scanned/1266862>\
**Category:** Questions about Thunkable X\
**Tags:** firebase, beginner\
**Created:** [May 6, 2021, 1:45pm UTC](https://community.thunkable.com/t/how-to-change-the-qr-code-status-into-already-used-or-already-scanned/1266862 "2021-05-06T13:45:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![arty3mm](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@arty3mm](https://community.thunkable.com/u/arty3mm)\
**Post date:** [May 6, 2021, 1:45pm UTC](https://community.thunkable.com/t/how-to-change-the-qr-code-status-into-already-used-or-already-scanned/1266862/1 "2021-05-06T13:45:26Z")

</div>

help with this "if QR code is scanned from your App, if will change the status of your QR Code “Already Scanned!” or “Not Valid! Create a new One”

Thanks.

---

<div class="post-metadata">

**Author:** ![tony.ycy.program](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tony.ycy.program/32/100153_2.png) [@tony.ycy.program](https://community.thunkable.com/u/tony.ycy.program)\
**Post date:** [May 6, 2021, 2:13pm UTC](https://community.thunkable.com/t/how-to-change-the-qr-code-status-into-already-used-or-already-scanned/1266862/2 "2021-05-06T14:13:57Z")

</div>

`https://chart.apis.google.com/chart?cht=qr&chl=[content]&chs=300x300`  
Content can use `com.gmail.xxxxxx.app_name.text`  
Ex.  
App id:com.gmail.1234.qrapp  
text: hello  
QR code:  
[https://chart.apis.google.com/chart?cht=qr&chl=com.gmail.1234.qrapp.hello&chs=300x300](https://chart.apis.google.com/chart?cht=qr&chl=com.gmail.1234.qrapp.hello&chs=300x300)  
😀  
 ![圖片](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/d/9d064fc3a18bc2e012128f88073ed1645eb3b72c.png)

---

<div class="post-metadata">

**Author:** ![tony.ycy.program](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tony.ycy.program/32/100153_2.png) [@tony.ycy.program](https://community.thunkable.com/u/tony.ycy.program)\
**Post date:** [May 6, 2021, 2:31pm UTC](https://community.thunkable.com/t/how-to-change-the-qr-code-status-into-already-used-or-already-scanned/1266862/3 "2021-05-06T14:31:40Z")

</div>

`If QR code return contain com.gmail.1234.qrapp`

```
`x=replace com.gmail.1234.qrapp`
`if x==hello`
   `Show label text=hello`
`if x==...`
   `then`

```

` ...`

---

<div class="post-metadata">

**Author:** ![arty3mm](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@arty3mm](https://community.thunkable.com/u/arty3mm)\
**Post date:** [May 6, 2021, 4:49pm UTC](https://community.thunkable.com/t/how-to-change-the-qr-code-status-into-already-used-or-already-scanned/1266862/4 "2021-05-06T16:49:39Z")

</div>

Hi tony,

This is what I wanted to achieve:

My app shows a QR code (a dynamic QR Code). When another person scan it either using their own phone, code scanner or even any scanning machine from a cash register shall we say McD\*\*, it will say the status of the QR code “Not Valid!” or even generate a new QR Code.

---

<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:** [May 6, 2021, 4:56pm UTC](https://community.thunkable.com/t/how-to-change-the-qr-code-status-into-already-used-or-already-scanned/1266862/5 "2021-05-06T16:56:50Z")

</div>

QR codes are just shortcuts to content such as text or URLs. So I think the only way to do what you’re asking is to have the QR code point to a URL that has a page that gets updated when it’s visited.

So I guess you’d need a unique URL (say, a Firebase key value) that when visited changes the value of the data source. All of this would be done _outside_ of Thunkable. So it’s not something I can help with as I suspect it requires some HTML coding of some sort.

It would be something like:

```auto
When web page loads
   Display firebase key (e.g. "unused")
   Change firebase key (e.g. to "already used")

```

---

<div class="post-metadata">

**Author:** ![arty3mm](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@arty3mm](https://community.thunkable.com/u/arty3mm)\
**Post date:** [May 6, 2021, 6:54pm UTC](https://community.thunkable.com/t/how-to-change-the-qr-code-status-into-already-used-or-already-scanned/1266862/6 "2021-05-06T18:54:41Z")

</div>

Thank you for your input Tatiang, I will look into that stream.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:22pm UTC](https://community.thunkable.com/t/how-to-change-the-qr-code-status-into-already-used-or-already-scanned/1266862/7 "2024-11-08T13:22:41Z")

</div>


