# Help required: CSS and context (variable) access

**URL:** <https://discourse.nodered.org/t/help-required-css-and-context-variable-access/34654>\
**Category:** General\
**Created:** [22 October 2020 02:52 UTC](https://discourse.nodered.org/t/help-required-css-and-context-variable-access/34654 "2020-10-22T02:52:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [22 October 2020 03:29 UTC](https://discourse.nodered.org/t/help-required-css-and-context-variable-access/34654/2 "2020-10-22T03:29:09Z")

</div>

Unless things have changed, you cant access it directly, you have to send it in as a message

> [@Ui template & global scope](https://discourse.nodered.org/t/ui-template-global-scope/1929):
>
> Hello, I am trying to access the global scope in a ui template (\<script\> var myVar = global.get("MyVariable"); \</script\> ) but that results in a 'global is not defined' error message. Can I access it there and if so, using what syntax? tia!

---

_[View the full topic](https://discourse.nodered.org/t/help-required-css-and-context-variable-access/34654)._
