# Attribute variables

{% embed url="<https://www.youtube.com/watch?v=lhXC8Jh26us>" %}

{% hint style="info" %}
Additional information:

* Variables are allowed for text area type attributes only&#x20;
* If the user does not have privileges to preview an attribute, then instead of attribute code (e.g. #color) he sees a placeholder with the text “No access”
  {% endhint %}

{% hint style="info" %}
Information for apps developers: our app engine does not support the cases listed below:

* uses of global attributes with local attributes used as variable
* uses of global attributes with local select type attributes&#x20;
* refreshing values of a variable when changing a transition of the option value in the select type attribute
* When working with variables via API, remember to put them in double brackets Ex: {{#attribute\_code}} so the system knows they're variables, not a string
  {% endhint %}

{% hint style="info" %}
In Ergonode Transfer when working with variables in text area attribute (products.csv), remember to put them in double brackets Ex: {{#attribute\_code}} so the system knows they're variables, not a string.
{% endhint %}

### Types of attributes that can be added as a variable:

* date
* select
* numeric
* text
* price (only value, without currency)
* unit (only value, without unit)

### **Areas where you can edit the attributes with variables**  <a href="#spaces-in-which-we-can-edit-the-attributes-with-variables" id="spaces-in-which-we-can-edit-the-attributes-with-variables"></a>

* [product template](https://usermanual.ergonode.com/products/catalog/template#attribute-variables-in-the-product-template)
* catalog table (grid)
* [batch actions](/products/catalog/batch-actions.md)
* import - in order to import a variable you need to enter it in the appropriate {{#attributecode}} format
* [export ](https://usermanual.ergonode.com/data-exchange/channels/creating-a-new-channel/ergonode-zip-csv)- configuration of whether we download data with variables or final resolved content

If you are using attribute variables it's possible to use them directly on the grid.

On the grid, double click on the attribute to open it to edit.

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

Type hash char (#), and you will be presented with a list of attributes you may use.

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

Type more to narrow the list.

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

You may use more than one variable.

<figure><img src="/files/33zoJ7Gg6nQkD7cZREKi" alt=""><figcaption></figcaption></figure>

When attribute values are used you will see a new eye icon, clicking it will display a preview of the values.

<figure><img src="/files/40b4o4yCGMD2gjcZkYXr" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/aGgMBU4LNLKcY8JSfP8e" alt=""><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://usermanual.ergonode.com/product-design/attributes/attribute-variables.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.
