Get handle to object that's been loaded from json

Hi!
I use myForm.loadStruct(“form.json”, function(){});
to create & load a form.

How do I get a handle to an object from the form.json?
For instance, if I have a combo in the external form.json, like this:
[
{type: “combo”, name:“myCombo”, label: “Combo”},
]

alert(myForm.getItemType(‘myCombo’)); returns Null

What I want to do is load the options in the combo from an other .json,
I guess something like
myCombo.load(“values.json”);
but it’s not working.

Thank you for any help :slight_smile:

Please, try to use the callback function of the loadStruct method:
myForm.loadStruct(“form.json”, function(){
alert(myForm.getItemType(‘myCombo’));
});

That works! Thank you for your help!