QR Code Text into Prefilled form

Is it possible for Tulip to scan a QR code, extract the text from it, populate that data into specific fields on a pre-filled form, and then generate a PDF or document with the updated information?

How can I accomplish this?

Hi David,

Yes, Tulip can scan your QR code, fill the form, and output a PDF.

  1. Add an Optical Barcode Scanner widget to a scan step.
  2. Store its output in a text variable, e.g., ScanText.
  3. Trigger on Barcode appearedSplit String ScanText; write parts to your form fields.
  4. Test with your real QR codes; adjust lighting and camera distance.
  5. Build a “Report” step sized Letter; overlay variable text on the PDF template.
  6. Add a Print Steps action; operators choose Save as PDF in the dialog.

The widget captures raw text, triggers map it to fields, and the browser print dialog lets you save the rendered step as a PDF.

Docs for setup:

Let me know if you’d like help scoping the trigger logic or PDF layout.

Hey Nicolo, I am having trouble setting up the trigger..


Where do I go from here? Could you please provide more detail in setting this up? Thank you so much!

Hi David,

Thanks for sending your screenshot. You’re close to having this set up correctly. Here’s how to complete your trigger and get the scanned QR code data into your form fields:

  1. Set the “by” field to Static Value, and enter the character your QR uses to separate values (for example, a comma or pipe).
  2. In “store in”, select an Array of Text variable like SplitParts. Create one in the Variables tab if needed.
  3. Add actions like:
Set Variable ➜ FirstName = SplitParts[0]
Set Variable ➜ LastName = SplitParts[1]
Set Variable ➜ Email = SplitParts[2]
  1. Test with a real QR code to confirm the fields populate correctly.
  2. On your report step, link those variables to text widgets.
  3. Add a Print Steps action. The operator can then choose “Save as PDF” from the print dialog.

This setup will scan the code, fill in the form, and let you save it as a document.

Let me know if you want help reviewing your full trigger or layout.

Hi Nicolo,

I can’t find the Set Variable action like you are describing. Could you show me a screenshot of how it should look like, please?

Hi David,

Below is a filled‑in example of the trigger you are building. The key parts are the Data Manipulation → Store action and the Expression that pulls the first item from the array (SplitParts[0]).

  1. In Split String, enter the delimiter your QR uses into the empty by box (comma in my test).
  2. Click + Add new action → Data Manipulation → Store.
  3. Set data to Expression, then type SplitParts[0].
  4. Pick the target text variable in location (for example FirstName).
  5. Repeat steps 2 to 4 for SplitParts[1] → LastName, SplitParts[2] → Email, and so on.
  6. Scan a real code and confirm the variables update in the Debug panel.

Best,
Nicolo