# Rich Attributes

Using rich attributes you can further enhance the respondent experience and add custom features to your existing HTML code

## 🔠 Modal popup dialog window attributes

Using the modal popup attributes you can configure any of your html element to open a modal pop window on top of your survey. This modal pop up window can be configured to load as well an iframe.

To setup the modal pop attributes click on the source tab of your rich text editor and add following attributes to the HTML tag that will be used to open the modal window

* **`data-dialog-`link** let you define the target website URL that will be opened in your modal popup IFrame.
* **`data-dialog-title`** let you set a title for the pop up. Optional.
* **`data-dialog-width`** let you set the width of the window. Optional.
* **`data-dialog-button`** let you change the button text of the popup window. Optional.

Here an example of link that will be used to open a popup window showing the content of the website specified by the data-dialog-link attribute value.

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

{% hint style="danger" %}
Rich attributes are currently only supported within question text content.
{% endhint %}


---

# 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.ngsurvey.com/form-management/form-designer/rich-text-editor/rich-attributes.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.
