# Change node icon based on config

**URL:** https://discourse.nodered.org/t/change-node-icon-based-on-config/36266
**Category:** Developing Nodes
**Created:** [20 November 2020 23:02 UTC](https://discourse.nodered.org/t/change-node-icon-based-on-config/36266 "2020-11-20T23:02:47Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [22 November 2020 11:50 UTC](https://discourse.nodered.org/t/change-node-icon-based-on-config/36266/2 "2020-11-22T11:50:09Z")

</div>

Hi @Achronite

there is no support for dynamically changing the node's icon. The `icon` property in its definition must be a string - it cannot be a Function.

We don't currently expose a way for the `oneditprepare` function to override the icon either.

---

_[View the full topic](https://discourse.nodered.org/t/change-node-icon-based-on-config/36266)._
