# 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.&#x20;
{% 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: 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:

```
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>
```

The question should be specific, self-contained, and written in natural language.
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.
