# Text

You can use the text variables to pass custom text to the visual.

### 1. Configuration <a href="#id-1.-configuration" id="id-1.-configuration"></a>

This section outlines configurations specific to text variables.

**1.1. Value:** Assign a default value for the text variable.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FIpFfg15F2Ede9lLmmc49%2Fimage.png?alt=media&#x26;token=aa388b47-41aa-43b1-9399-597271db59f0" alt=""><figcaption><p>Text variable configuration</p></figcaption></figure>

### 2. Examples <a href="#id-2.-examples" id="id-2.-examples"></a>

**2.1. Set custom text in the header/footer**

**STEP 1:** Create a text variable with the configuration shown below.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FHkyJRHIcXq7oAVsErbnr%2Fimage.png?alt=media&#x26;token=4db607e8-c5d7-4efd-abae-b94699fc4e1a" alt=""><figcaption><p>Create a text variable</p></figcaption></figure>

**STEP 2:** Insert the text variable in the header - navigate to the Header\&Footer ribbon > Insert > Variables > select the variable to use.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FJovFfwZBeHtPob018QMO%2Fimage.png?alt=media&#x26;token=92a3faba-b652-4f6f-ac1f-6838320472fc" alt=""><figcaption><p>Insert variable in the header</p></figcaption></figure>

**STEP 3:** Notice how the summary in the header changes as we update the text in the variable.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FZLnSSSTxXygzeX76NCyj%2FUntitled%20Project.gif?alt=media&#x26;token=91d9a254-d904-4427-95e3-52d97e8e64b2" alt=""><figcaption><p>Using text variables in Inforiver reports</p></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://docs.inforiver.com/working-with-inforiver/18.-variables/variable-types/text.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.
