# Set atributes/styles in svg

**URL:** <https://discourse.nodered.org/t/set-atributes-styles-in-svg/70470>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [11 November 2022 21:50 UTC](https://discourse.nodered.org/t/set-atributes-styles-in-svg/70470 "2022-11-11T21:50:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dalen98](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@Dalen98](https://discourse.nodered.org/u/Dalen98)\
**Post date:** [11 November 2022 21:50 UTC](https://discourse.nodered.org/t/set-atributes-styles-in-svg/70470/1 "2022-11-11T21:50:49Z")

</div>

hello all, I'm working with svg node, I use "update\_style/set\_style" or "update atributte/set\_atributte" commands to change the color of an object created in the same node, and it works fine, but I noticed that when reloading the page the change disappears or when I change the dashboard tab.  
My question is, is there a way to make the change permanent?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [12 November 2022 00:11 UTC](https://discourse.nodered.org/t/set-atributes-styles-in-svg/70470/2 "2022-11-12T00:11:43Z")

</div>

You can use the ui-control node to detect new page access / page refresh and re-supply the changes & updates.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 December 2022 00:11 UTC](https://discourse.nodered.org/t/set-atributes-styles-in-svg/70470/3 "2022-12-12T00:11:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
