Hi,
I set the userdata for an input item in the back xml file. If the data is an empty string by chance, there will be a javascript error on the front end reading:
Uncaught TypeError: Cannot read property ‘nodeValue’ of null
This causes the form not showing.
How can I solve this?
Thanks.
Even if the userdata is not set, there is no error on front-end.
The javascript looks like:
myform.getUserData("content","value");
This has an error.
<items>
<item type="input" name="content" label="Content">
<userdata name="value" />
</item>
</items>
This has NO error.
<items>
<item type="input" name="content" label="Content" />
</items>
Darya
March 16, 2015, 11:27am
#3
Hello
The logic is the next: if you haven’t the data to fill this tag - don’t add it. You can add it later via method setUserData()
Ok, Thanks.
I will do it accordingly.
Although I still think it unreasonable.
Andrei
March 17, 2015, 5:42pm
#5
Hi
we will include fix for into the future update