# Remove property in oneditsave

**URL:** <https://discourse.nodered.org/t/remove-property-in-oneditsave/36650>\
**Category:** Developing Nodes\
**Created:** [27 November 2020 21:18 UTC](https://discourse.nodered.org/t/remove-property-in-oneditsave/36650 "2020-11-27T21:18:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phunkafizer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/phunkafizer/32/10587_2.png) [@Phunkafizer](https://discourse.nodered.org/u/Phunkafizer)\
**Post date:** [27 November 2020 21:18 UTC](https://discourse.nodered.org/t/remove-property-in-oneditsave/36650/1 "2020-11-27T21:18:04Z")

</div>

Hi,

I'm trying to remove a property of my new node when the propertydialog is closed. Condition of if-clause is true, but node.code="" does not seem to work; it is still set on the server side after closing and deploying.

```auto
oneditsave: function() {
            var node = this;
            if ($("#node-row-code").is(":hidden")) {
                node.code = "";
            }
}

```

What could be the problem?  
Stefan

---

<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:** [26 January 2021 21:18 UTC](https://discourse.nodered.org/t/remove-property-in-oneditsave/36650/2 "2021-01-26T21:18:08Z")

</div>

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