# Conditional Check After Barcode Scan?

**URL:** https://community.glideapps.com/t/conditional-check-after-barcode-scan/82431
**Category:** Ask for Help
**Tags:** scanner
**Created:** [June 12, 2025, 5:38pm UTC](https://community.glideapps.com/t/conditional-check-after-barcode-scan/82431 "2025-06-12T17:38:06Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![JohnnyBoy](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@JohnnyBoy](https://community.glideapps.com/u/JohnnyBoy)
#### Post date: [June 12, 2025, 5:38pm UTC](https://community.glideapps.com/t/conditional-check-after-barcode-scan/82431/1 "2025-06-12T17:38:06Z")

</div>

Hello! I’m unable to figure out how to perform a conditional check upon a scan since the workflow editor will only allow conditionals at the action origin. The desired flow is: Person scans barcode, system looks up that scanned ID in a table and compares value: If X do this, if not, do this. Screenshot shows how the scanned action can only be placed after the conditional.

Any help you can provide is appreciated. Thanks!

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/4/84e712ff634916af7a5e48272708c2dc29155a27.png)

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [June 12, 2025, 11:53pm UTC](https://community.glideapps.com/t/conditional-check-after-barcode-scan/82431/2 "2025-06-12T23:53:30Z")

</div>

I think you can do this:

- Add a webhook workflow and build the logic above there, plan ahead by having a query step to query the scanned barcode value that you will send over, and reference that in your conditions.
- Go back to the scan barcode chain of actions, add a step to trigger the webhook workflow, and send over the scanned barcode value through the body/query params.

---

<div class="post-metadata">

### Author: ![JohnnyBoy](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@JohnnyBoy](https://community.glideapps.com/u/JohnnyBoy)
#### Post date: [June 16, 2025, 10:06pm UTC](https://community.glideapps.com/t/conditional-check-after-barcode-scan/82431/3 "2025-06-16T22:06:22Z")

</div>

Thank you. Your suggestion was a little above my head but I was able to figure out a way forward by first calculating the condition in a table, creating a relation to that, and then referencing that relation in the conditional at the beginning of the workflow. This video was helpful for those who need it: [https://www.youtube.com/watch?v=A0pe7gGZVrw&ab\_channel=GRUMO](https://www.youtube.com/watch?v=A0pe7gGZVrw&ab_channel=GRUMO)

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [June 16, 2025, 11:18pm UTC](https://community.glideapps.com/t/conditional-check-after-barcode-scan/82431/4 "2025-06-16T23:18:39Z")

</div>

Is the “scan barcode” action a part of that workflow, or can you configure a scan barcode component separately?

Honestly I haven’t built many apps that use barcodes, my assumption based on your comment is we can have a scan barcode component which triggers a workflow.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [June 16, 2025, 11:21pm UTC](https://community.glideapps.com/t/conditional-check-after-barcode-scan/82431/5 "2025-06-16T23:21:20Z")

</div>

Just searched for it, yeah we do have both (a component and an action).

> **[Scanner | Glide Docs](https://www.glideapps.com/docs/barcode-scanner)**
>
> Scan barcodes and QR codes with your Glide app.

> **[Scan Barcode or QR Code | Glide Docs](https://www.glideapps.com/docs/scan-barcode)**
>
> Scan barcodes or QR codes and log the values to your table.

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [June 23, 2025, 11:21pm UTC](https://community.glideapps.com/t/conditional-check-after-barcode-scan/82431/6 "2025-06-23T23:21:28Z")

</div>

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