# Form Designer not editable

**URL:** <https://discuss.workflowgen.com/t/form-designer-not-editable/863>\
**Category:** Form Designer\
**Created:** [September 4, 2017, 11:21am UTC](https://discuss.workflowgen.com/t/form-designer-not-editable/863 "2017-09-04T11:21:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GiapWeng](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@GiapWeng](https://discuss.workflowgen.com/u/GiapWeng)\
**Post date:** [September 4, 2017, 11:21am UTC](https://discuss.workflowgen.com/t/form-designer-not-editable/863/1 "2017-09-04T11:21:41Z")

</div>

My form designer not able to edit (but can navigate to Id, Appearance, .NET, etc…) after I wrote a javascript function and save it.

Is anyone facing this before?

---

<div class="post-metadata">

**Author:** ![pnicoll](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/pnicoll/32/454_2.png) [@pnicoll](https://discuss.workflowgen.com/u/pnicoll)\
**Post date:** [September 6, 2017, 2:05pm UTC](https://discuss.workflowgen.com/t/form-designer-not-editable/863/2 "2017-09-06T14:05:26Z")

</div>

Hi GiapWeng,

Custom client-side JavaScript code must be executed in runtime mode only. To ensure this, enclose your JavaScript code with the following IF block:

```auto
if (typeof $selectedObject === "undefined") { // Place your code here }

```

Regards,

Peter
