# Barcode generating

**URL:** <https://community.tulip.co/t/barcode-generating/3083>\
**Category:** General\
**Created:** [July 6, 2021, 3:35pm UTC](https://community.tulip.co/t/barcode-generating/3083 "2021-07-06T15:35:01Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![FahdERM](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@FahdERM](https://community.tulip.co/u/FahdERM)\
**Post date:** [July 6, 2021, 3:35pm UTC](https://community.tulip.co/t/barcode-generating/3083/1 "2021-07-06T15:35:01Z")

</div>

Hi guys,  
I tried the barcode generating functionality because i have to develop an application based on barcodes and i tried to write a multiple line text format. The barcode generating went correctly and i had my barcode. But when i treid to read it, i got numbers instead of text.  
Any one know how to re-read the text that i have used before and generally how i can break down a barcode that is composed of multiple lines?  
thank you,  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/6/64448aa4c258d7bd946234a749908f804c8e625a.png)

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [July 6, 2021, 3:50pm UTC](https://community.tulip.co/t/barcode-generating/3083/2 "2021-07-06T15:50:25Z")

</div>

hello @FahdERM, thanks for posting!!

could you share the Trigger you’re using to scan the barcode and what the Variable below the Barcode Widget is displaying??

I tried replicating this on my instance (and while I do not have a barcode scanner) the Variable which the scanner would read is displaying the same values, including the line breaks:

 ![Screen Shot](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/c/cf2ab87d69ddf54516bc6e5da57f253fc9fc69d5.jpeg)  
 ![Screen Shot 1](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/7/78161b2f073d530a2eefc0e4d8ac83b148775055.jpeg)

thanks!!

---

<div class="post-metadata">

**Author:** ![FahdERM](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@FahdERM](https://community.tulip.co/u/FahdERM)\
**Post date:** [July 7, 2021, 6:25am UTC](https://community.tulip.co/t/barcode-generating/3083/3 "2021-07-07T06:25:49Z")

</div>

Hey @gio,  
Here what the variable below the barcode Widget is displaying :

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/2/214e72286d1d0c18a563ffbe6d2a48072cf7a9d1.png)  
And here is my trigger i am using 🙂  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/2/27a3615cca2078c7ff3ff6620074e50aacd8ee29.png)  
Knowing that i even don’t have a barcode scanner so i use the optical one for tests.  
thanks,

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [July 7, 2021, 1:50pm UTC](https://community.tulip.co/t/barcode-generating/3083/4 "2021-07-07T13:50:54Z")

</div>

hello @FahdERM,

thanks for sharing!! I did some investigation using the Optical Barcode Scanner on my end and it does seem to work as intended, including the line breaks:

 ![image_6483441](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/3/3eecb27b58bf04636d349f6270a26445a918e1fa.jpeg)

have you also tried with a QR Code??

thanks!!

---

<div class="post-metadata">

**Author:** ![FahdERM](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@FahdERM](https://community.tulip.co/u/FahdERM)\
**Post date:** [July 7, 2021, 2:15pm UTC](https://community.tulip.co/t/barcode-generating/3083/5 "2021-07-07T14:15:07Z")

</div>

Hey @gio,  
I have already tried this with a QR code and it works correctly. I will try to generate an other barcode and keep you in touch.  
But an other thing, imagine that i have to generate a barcode with several line breaks or symbols like “/” or “;” for example. Hom can i decompose the read variable and to get each element in av separate variable : for example you variable with the two words “Helle \n World” and to save Hello in a variable and World in an other variable.  
thanks,

---

<div class="post-metadata">

**Author:** ![FahdERM](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@FahdERM](https://community.tulip.co/u/FahdERM)\
**Post date:** [July 7, 2021, 2:46pm UTC](https://community.tulip.co/t/barcode-generating/3083/6 "2021-07-07T14:46:38Z")

</div>

Hi @gio,  
Here is an other test that i have done :

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/1/1fb9ffdec21fde0b18a0a8431c979ea82268281d.png)

---

<div class="post-metadata">

**Author:** ![Het](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@Het](https://community.tulip.co/u/Het)\
**Post date:** [July 7, 2021, 4:43pm UTC](https://community.tulip.co/t/barcode-generating/3083/7 "2021-07-07T16:43:11Z")

</div>

Hey Fahd,  
Here is the set-up that I used to extract 2 variables from a text input field.

 ![Screen Shot 2021-07-07 at 12.41.46 PM](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/9/9ef51c4fc582377b1cfd28557c5fa8adc394f443.jpeg)  
 ![Screen Shot 2021-07-07 at 12.41.09 PM](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/c/cc9d566876a626da3abfb165033e96feb413bdb4.jpeg)  
 ![Screen Shot 2021-07-07 at 12.41.28 PM](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/b/be92f2ddf0639d51a99752c3991d3d66be6fc014.jpeg)  
 ![Screen Shot 2021-07-07 at 12.39.33 PM](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/c/c89e27721652715b5fbea4c42fb010383318fd59.png)

Let us know if this works for you!

Thanks,  
Het.

---

<div class="post-metadata">

**Author:** ![FahdERM](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@FahdERM](https://community.tulip.co/u/FahdERM)\
**Post date:** [July 8, 2021, 8:27am UTC](https://community.tulip.co/t/barcode-generating/3083/8 "2021-07-08T08:27:13Z")

</div>

Hey @Het,  
Thanks for this sharing. I tried this and i got what i want. Now i have to figure out why i can’t read the genrated barcode.  
Thanks,

---

<div class="post-metadata">

**Author:** ![FahdERM](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@FahdERM](https://community.tulip.co/u/FahdERM)\
**Post date:** [July 8, 2021, 1:28pm UTC](https://community.tulip.co/t/barcode-generating/3083/9 "2021-07-08T13:28:12Z")

</div>

Hey Guys,  
In addition to this topic, any one know how to flip and rotate the live view of the camera when reading a barcode on a tablet?  
thanks,

---

<div class="post-metadata">

**Author:** ![FahdERM](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@FahdERM](https://community.tulip.co/u/FahdERM)\
**Post date:** [July 8, 2021, 2:35pm UTC](https://community.tulip.co/t/barcode-generating/3083/10 "2021-07-08T14:35:28Z")

</div>

Hi @gio,  
How can i generate a QR code that includes line breaks? I tried to do so using the same connector function but it shows me an error and doesn’t generate the code.  
Thanks,

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [July 8, 2021, 2:57pm UTC](https://community.tulip.co/t/barcode-generating/3083/11 "2021-07-08T14:57:43Z")

</div>

hello @FahdERM!! would you mind clarifying which Connector Function you are referring to??

when using the Barcode Widget you can display the Barcode tied to a Variable that has multiple lines:

 ![Screen Shot](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/7/74426cf08f19f46f21750304282d2b60387a522c.jpeg)  
 ![Screen Shot 1](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/9/99122e2be5f88017fb667f90e32f024142701272.jpeg)

would this work for you?? let me know!!

---

<div class="post-metadata">

**Author:** ![FahdERM](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@FahdERM](https://community.tulip.co/u/FahdERM)\
**Post date:** [July 8, 2021, 2:59pm UTC](https://community.tulip.co/t/barcode-generating/3083/12 "2021-07-08T14:59:20Z")

</div>

Hi @gio,  
For the moment i am using this fucntion :

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/7/79dcdad19b264b22f9d33e875188d08a7da612d1.png)  
But the other method worked for me so thank you for your help. Every thing is okay now.  
Thanks,

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [July 8, 2021, 4:18pm UTC](https://community.tulip.co/t/barcode-generating/3083/13 "2021-07-08T16:18:45Z")

</div>

> [@FahdERM](#):
>
> Every thing is okay now

great to hear!! let us know if other questions come up.

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [July 8, 2021, 4:18pm UTC](https://community.tulip.co/t/barcode-generating/3083/14 "2021-07-08T16:18:47Z")

</div>


