Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Problems wiht instanceManager.addInstance() and signature fields

Avatar

Level 1

I have a subform that contains two signature fields which I have set to not lock any field during signing. This subform has the ability to appear in the PDF as may times as needed.  The problem is that as soon as I click the button to add an instance to the form. All signature fields in the original subform and the newly created subform dissappear from the form.

What do I need to do to make sure that the signature fields are available when I create a new instance of the form? 

Below is the code I am using to create the new instance:

var

subForm =xfa.resolveNode("Affidavites.Affidavit");

if

(subForm != null)

{

     subForm.occur.max

= "10";

     var newForm = subForm.instanceManager.addInstance(1);

     newForm.presence

= "visible";

}

else

     xfa.host.messageBox("Unable to create instance of Affidavit");

1 Reply

Avatar

Former Community Member

You can have a signature field, or multiple signature fields on a dynamic form, but you cannot place the signature field(s) inside a repeatable subform.  This is nor supported and will not work.

Regards

Steve