Skip to main content
Solved

Document template barcode field

  • October 23, 2025
  • 0 replies
  • 403 views

Forum|alt.badge.img+2

I'm creating a document template and I want to add a barcode of a text field.  I've added this to the source directly from a rich text formula field.

 The resulting document is displayed as

 

What is the proper notation to get the field "UDI" into the <img src....?

 

Thanks.

Best answer by Denin

1.) Create a new rich text formula field.

2.) In the formula, use this:

"<img src=\"https://barcode.tec-it.com/barcode.ashx?data=" & [First Name] & "\"/>"

Note: In my example I'm using a field called "First Name", change to the name of your field. Also the exact syntax will depend on what kind of content is contained in your field, but this should work assuming it's plain text.

3.) In your document template, add the new formula field either from the easy "Add Elements" feature or from the source like this:

<qb-field field-id="53"></qb-field>

Replace the "53" with the field ID of your field.

 

Result:

 

Forum|alt.badge.img+11
  • Registered
  • Answer
  • October 24, 2025

1.) Create a new rich text formula field.

2.) In the formula, use this:

"<img src=\"https://barcode.tec-it.com/barcode.ashx?data=" & [First Name] & "\"/>"

Note: In my example I'm using a field called "First Name", change to the name of your field. Also the exact syntax will depend on what kind of content is contained in your field, but this should work assuming it's plain text.

3.) In your document template, add the new formula field either from the easy "Add Elements" feature or from the source like this:

<qb-field field-id="53"></qb-field>

Replace the "53" with the field ID of your field.

 

Result:

 


curevick
Forum|alt.badge.img+5
  • Registered
  • October 27, 2025

This is great! Not sure if it's totally relevant, but if you ever need QR Codes, I use something like this: 

URLRoot() & "db/" & [_DBID_MEDICATIONS_TRACKING] & "?a=API_GenAddRecordForm&_fid_6=" & URLEncode([Medication Name]) & "&z=" & Rurl()