ReferenceError: text is not defined

I want to change the text of an element through properties. But, I am unable to figure out the cause of error.
I have written following code for it.



Error

Hi @aamir, guess on line 9 you could try “properties.bt-text” –> “properties.bt_text” & change your parameter from “bt-text” –> “bt_text” as well of course.

Is it a constraint that the field name can not contain hyphen?

It is not documented. But yes.

This topic was automatically closed after 70 days. New replies are no longer allowed.