# \#context-variables

**URL:** https://forums.losant.com/tag/context-variables/30.md

[Latest](https://forums.losant.com/latest.md) · [Categories](https://forums.losant.com/categories.md) · [Tags](https://forums.losant.com/tags.md)

---

## [Dynamic Dashboard Context Variables](https://forums.losant.com/t/dynamic-dashboard-context-variables/5743)

<div class="topic-metadata">

**Author:** [@Jason\_Walton](https://forums.losant.com/u/Jason_Walton)\
**Replies:** 1\
**Last updated:** [January 22, 2025, 2:25pm UTC](https://forums.losant.com/t/dynamic-dashboard-context-variables/5743 "2025-01-22T14:25:08Z")

</div>

Support, We are growing our solution to have multiple fleets, and I’m interested in taking one my dashboards that currently has a “Device” context variable, and adding a second context variable that dictates the “Fleet”…

---

## [Custom HTML device table](https://forums.losant.com/t/custom-html-device-table/5540)

<div class="topic-metadata">

**Author:** [@Allan\_West](https://forums.losant.com/u/Allan_West)\
**Replies:** 1\
**Last updated:** [July 30, 2024, 4:48pm UTC](https://forums.losant.com/t/custom-html-device-table/5540 "2024-07-30T16:48:36Z")

</div>

We’ve been working with a developer to create a custom HTML dashboard block that displays a list of devices and links based on userID context and has search functions. It now seems to be working the way it should, excep…

---

## [Add context variable for color](https://forums.losant.com/t/add-context-variable-for-color/4622)

<div class="topic-metadata">

**Author:** [@Paolo\_Proxy](https://forums.losant.com/u/Paolo_Proxy)\
**Replies:** 1\
**Last updated:** [June 30, 2022, 2:03pm UTC](https://forums.losant.com/t/add-context-variable-for-color/4622 "2022-06-30T14:03:58Z")

</div>

Hi there, would be nice to set the color also via context variable. That way the user can choose what color to associate to a threshold.

---

## [Context variables in the Custom Chart](https://forums.losant.com/t/context-variables-in-the-custom-chart/2950)

<div class="topic-metadata">

**Author:** [@lucasbtsuchiya](https://forums.losant.com/u/lucasbtsuchiya)\
**Replies:** 10\
**Last updated:** [May 19, 2020, 9:18pm UTC](https://forums.losant.com/t/context-variables-in-the-custom-chart/2950 "2020-05-19T21:18:56Z")

</div>

Is there a way to read the value of a context variable in the Custom Chart dashboard using the Vega-lite library? “data”: \[ { “name”: “table”, “values”: \[ {“key”: “Eixo X”, “value”: {{ctx.variable}}, “category”: 0}, …

---

## [\[Solved\] Context attribute as a filter](https://forums.losant.com/t/solved-context-attribute-as-a-filter/2854)

<div class="topic-metadata">

**Author:** [@Flavio\_Garlet](https://forums.losant.com/u/Flavio_Garlet)\
**Replies:** 7\
**Last updated:** [April 27, 2020, 6:55pm UTC](https://forums.losant.com/t/solved-context-attribute-as-a-filter/2854 "2020-04-27T18:55:24Z")

</div>

So, I have a single device acting as a gateway, it receives data from several devices. This gateway has an attribute called “Name”, for example “55b8”, “00c3”, depending on the device that sent the data to the gateway. I…

---

## [How pass a context variable as deviceTag](https://forums.losant.com/t/how-pass-a-context-variable-as-devicetag/2806)

<div class="topic-metadata">

**Author:** [@Vander\_Maziero](https://forums.losant.com/u/Vander_Maziero)\
**Replies:** 4\
**Last updated:** [April 9, 2020, 4:25pm UTC](https://forums.losant.com/t/how-pass-a-context-variable-as-devicetag/2806 "2020-04-09T16:25:00Z")

</div>

Hi, I’m trying to pass a context variable (parentId = {{request.query.deviceId}}), through experience, as Device Tag to the dashboard. I found this case in the documentation, where the fields are generated for a specifi…

---

## [Context variables to pass parent and children Id (in dashboard)](https://forums.losant.com/t/context-variables-to-pass-parent-and-children-id-in-dashboard/2680)

<div class="topic-metadata">

**Author:** [@Ryan\_Calderon](https://forums.losant.com/u/Ryan_Calderon)\
**Replies:** 1\
**Last updated:** [March 2, 2020, 2:42pm UTC](https://forums.losant.com/t/context-variables-to-pass-parent-and-children-id-in-dashboard/2680 "2020-03-02T14:42:16Z")

</div>

Is there a way to use context variables to pass a device’s parent and children device Ids? example: I’m trying to allow the user to select a SYSTEM on a dashboard map (several are shown). This will create a URL with co…

---

## [Experience User Data via Virtual Button to Workflow](https://forums.losant.com/t/experience-user-data-via-virtual-button-to-workflow/1773)

<div class="topic-metadata">

**Author:** [@Leo\_Bach1](https://forums.losant.com/u/Leo_Bach1)\
**Replies:** 3\
**Last updated:** [May 2, 2019, 2:25pm UTC](https://forums.losant.com/t/experience-user-data-via-virtual-button-to-workflow/1773 "2019-05-02T14:25:44Z")

</div>

Trying to send userTags into a workflow with data entered by an Experience User using a user input block. My experience user logs in and via a GET request to /gateways accesses the dashboard where he will submit some …

---

## [Context Variables to show/hide blocks](https://forums.losant.com/t/context-variables-to-show-hide-blocks/845)

<div class="topic-metadata">

**Author:** [@paul\_wareham](https://forums.losant.com/u/paul_wareham)\
**Replies:** 6\
**Last updated:** [February 10, 2019, 3:39pm UTC](https://forums.losant.com/t/context-variables-to-show-hide-blocks/845 "2019-02-10T15:39:54Z")

</div>

Is it possible to use context variables to either show or not show a specific block depending on an arbitrary attribute value?

---

## [\[Solved\] Dynamic block headers & label contents?](https://forums.losant.com/t/solved-dynamic-block-headers-label-contents/1445)

<div class="topic-metadata">

**Author:** [@Steve\_K](https://forums.losant.com/u/Steve_K)\
**Replies:** 1\
**Last updated:** [January 16, 2019, 8:25pm UTC](https://forums.losant.com/t/solved-dynamic-block-headers-label-contents/1445 "2019-01-16T20:25:47Z")

</div>

Greetings! Is it possible to make block headers and labels within blocks dynamic? For example, use a device attribute instead of hard-coded text? Thanks!
