Dear all,
to be honest I am feeling a little lost, working with Form Builder and even IDM 4.9 did not provide a huge step forward regarding it´s documentation.
I know, there is a general documentation available on FormIO, but at least speaking for myself it leaves quite a few questions open, if IDM Form Builder is used.
Since the beginning I am struggling to understand the data model behind the forms, and how field values are accessed corectly.
I know, any form comes along with a data object, and (any?) field value can be accessed in JS code by the properties fof data like this
data.[APIkey of the Field] or data['APIkey']
But this seems to be working only to "read" a value of a field!
To set a field valu by JS, I got used to work with the instance object like this
instance.root.getComponent('[APIkey]').setFieldValue() orinstance.root.getComponent('[APIkey]').setValue()
If the code is used on a particular component even instance.setFieldValue() is working.
I am wondering, if someone can tell me, why I cannot use the data object properties to set a value to a field?
Is there any reference which methods a certain component provides?
And one last question: Is there any documentation on the datatype or syntax is expected for a component's value?
Kind regards
Thorsten