# Display Dynamic Text

## Overview

You might want to show dynamic text on a step of your form depending on the collected form data or a custom logic rule. Alternatively, you might want to open a dynamic URL from your form or show a dynamic field tooltip.

To do so, you may include a text variable in your text with double curly braces like: `{{firstName}}`.

If the text variable matches the ID of a form or hidden field, Feathery will automatically populate it with the corresponding value. To populate the user ID of the current session, use `{{feathery_user_id}}`.

Aside from directly filling out fields in the form, you can also [manually set](https://docs.feathery.io/develop/react#setvalues) field values through [logic](https://docs.feathery.io/platform/build-forms/advanced-logic) or the [embed library](https://docs.feathery.io/develop/react) to populate text variables.

### Example <a href="#example" id="example"></a>

For example, you might need to display the input values from a calculator, along with the calculated total.

![](https://640450274-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHAVngDAEk3s8Bw7P6Ntz%2Fuploads%2FH3ngkJ8GMSOIUVK9WUDw%2Fdocs_text-variables.png?alt=media\&token=36b021ba-25bf-497f-9b7c-bfc18e747b04)


---

# 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.feathery.io/platform/build-forms/logic/display-dynamic-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.
