Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Livecycle Designer ES8.2

Avatar

Former Community Member
Hello,



I've got the following problem:

I want to remove and add a subform using "setInstances". In the sample files, there is an interactive purchase order example using a JavaScript and although I use the same syntax, nothing happens.



Question:

Do I have to make any specifications beforehand? What other failure sources could there be?



The subform which is to be added/removed by clicking on a button (Butoonchildren) is called "children", and the JavaScript used is the following:



form1.personal.childrenHeader.Buttonchildren::click - (JavaScript, client)



if (_children.count == 0) {

_chilren.setInstances(1);

this.resolveNode ("caption.value.#text").value = "Clear Subform";

}

else {

_children.setInstances(0);

this.resolveNode ("caption.value.#text").value = "Add Subform";

}



The important thing for me is to add/remove the subform; it is less important whether the text shown on the button changes or not.



Help is greatly appreciated - thank you!
3 Replies

Avatar

Former Community Member
Are you sure that your form is set up to be dynamic?

Avatar

Former Community Member
Hello,



I've got the following problem:



I just started using Livecycle Designer ES8.2.

I have a program with 140 dynamic forms, coded by somebody no longer around.



I am only able to see a few (30) of the forms in the "Design View" from all the members in the Hierarchy Pallette (140). Is there a filter or a function limiting the members been display in the Design View?



Thanks

Avatar

Level 4
Check their presence in the bottom of the Object palette (Shift+F7)