Once this checkbox is checked the FormHidden appears with the various text entries. I then have another button called Add Source that is supposed to add another instance of the FormHidden form. The code for this button is:
The problem I am having is that when I push the button if I have the form hidden initially it will not add another instance of the FormHidden. The Add Source button works fine if I make the form visible to begin with. It is something to do with having it hidden at first that makes it so it will not generate another instance. Any help would be wonderful. Thanks in advance!
Thank you for your response Luigi. If Luigi or anyone else has any ideas on how I can make these subsequent instances of the subform visible while still leaving the first one hidden until the button is clicked that would be great. I am not sure what the code would be for something like that. Do I need to be using other than the addinstance to be able to do this? Thanks!
The issue is that when the subform is hidden it is not part of the layout and as such is not an addressable object. When you call the instanceManager there is no object there. To alleviate this we added a syntax of _subformName that will address objects that are not part of the layout. So try this syntax instead.
Note that you do not need the xfa.resolveNode syntax in these expressions.