> For the complete documentation index, see [llms.txt](https://help.sdocs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sdocs.com/sdocs/template-architecture/images-in-s-docs/static-image-solutions/how-to-use-bar-codes-and-qr-codes.md).

# How to: Use Bar Codes & QR Codes

{% hint style="warning" %}
S-Docs does not offer the capability to generate QR Codes or Bar Codes. S-Docs is capable of including Bar Codes and QR Codes within S-Docs Templates, and therefore within a Generated Document.
{% endhint %}

## Prerequisites:

Before proceeding through this article, the user should have a working knowledge of:

* How to store an Image in a Rich Text Field
* How to format an HTML image tag

## Option 1: Store the Image in a Rich Text Field

1. Store the image in a Rich Text Field within a Salesforce Record
2. In the Template Editor, **Select Insert Field, Select the Rich Text Field, Select Insert**

   <figure><img src="/files/PHdRm1jOksaJgUPAvICB" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
Ensure 3 Curly Braces {{{!Object.fieldName}}} to correctly pull in Rich Text Data such as images or HTML Elements. The Insert Field Option will do this automatically if you enable **This field value contains HTML, Rich Text, or Images**
{% endhint %}

<figure><img src="/files/XgvQfdKOaNhiPw5q6yhg" alt=""><figcaption></figcaption></figure>

## Option 2: Inserting Markup into Plain Text Field

1. Insert the image using HTML Entities directly into a TextArea field

   <figure><img src="/files/TMrqyz9KEHXVe6sls0ph" alt=""><figcaption></figcaption></figure>
2. Insert the field in the template as we did in Option 1

<figure><img src="/files/scM7Ch3gmw5mxw193nOs" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.sdocs.com/sdocs/template-architecture/images-in-s-docs/static-image-solutions/how-to-use-bar-codes-and-qr-codes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
