I have a form (FormHidden) that is a hidden form when the pdf loads. I have a checkbox that can be checked to make the form visible. The code on this checkbox is:
if (this.rawValue == "1"){
xfa.form.form1.MainPage.FormHidden.presence = "visible";
} else {
xfa.form.form1.MainPage.FormHidden.presence = "hidden";
}
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:
xfa.resolveNode("form1.MainPage.FormHidden").instanceManager.addInstance(1);
xfa.form.recalculate(1);
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!