Putting container on different form

Hi,

I need to put a container on the current form. I get the current form using NSB.currentForm.id

Is it possible to do this using something like below (below throws as error) without actually writing the form name?

[NSB.currentForm.id].appendChild(comContainer);

Thanks

Have you tried this?

NSB.currentForm.appendChild(comContainer);

NSB.currrentForm references the current form object. NSB.currrentForm.id is the text name of the object.

I haven’t tried that.

It works well. Thanks.