setFormData ignoring zero

I have a simple input field in a form…

{ type:"input", name:"SITELABORRATE", label:"Site Labor Rate", readonly:true },

I’m using setFormData, the json value is a zero like…

..."SITELABORRATE" : 0,...

but setFormData puts nothing in the field, it stays blank. All other fields populate just fine. This field will populate just fine also so long as the number is not 0. I need the zero to show.

Locally it works. But recommend you using correct syntax:
myForm.setFormData({“inp1”: “0”})

Please, attach demo wich reproduces this issue
docs.dhtmlx.com/doku.php?id=othe … leted_demo

That’s what I was afraid you’d say. I’m using Oracle backend with PL/JSON (json.org spec. And according to the spec for values…

So that means…

..."SITELABORRATE" : 0,...

is valid. So can this be entered as a bug and fixed by DHTMLX please?

Please, send your completed demo on support@dhtmlx.com with a link to this topic - we will fix it for you on your files.

The fix you sent me worked. Thanks guys!

You are welcome!