Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

how to delete added items.


Level 3

Dear All.

Let me ask you about LiveCycle from? I've faced with problems. especially presence option of object and saving document.

- In the Page2, there is Add button to add row up to 10 rows. there are 2 sub-forms, MDListSoft, MDList. they can be changed depending on Option field in the first page. After Adding some sub-forms in the second page by Add button and then I changed value of Option field. Only first row disappeared. the others still remained.
how to remove all of them, added by Add item button, when i change value of Option field.


Script in the Option Field [drop down type] -----------------------------------------------------------------

Test_Report.Page1.Details.Info.info_Option.infoSelect::change - (JavaScript, client)
var extPath = Test_Report.Page2;
var changeEvent = xfa.event.change;
    Init.setPresence(extPath, "visible");
    if(changeEvent == "Op1"){
            Init.setPresence(extPath.MDTitle, "visible");
            Init.setPresence(extPath.MDList, "visible");
            Init.setPresence(extPath.MDListSoft, "hidden");           
    }else if(changeEvent == "Op2"){
            Init.setPresence(extPath.MDTitle, "visible");
            Init.setPresence(extPath.MDList, "hidden");
            Init.setPresence(extPath.MDListSoft, "visible");               

Script in the Add item button [Button type ] -----------------------------------------------------------------

Test_Report.Page2.MDTitle.Config_Add::click - (JavaScript, client)
var nNodes = 0;
var optionValue = Page1.Details.Info.info_Option.infoSelect.rawValue;
if(optionValue == "Op2"){
    nNodes = Page2.MDListSoft.resolveNodes("MDListSoft[*]").length;
    if (nNodes < 10){
    var obj = "";
        obj = Page2.MDListSoft.instanceManager.addInstance();
        obj.presence = "visible";
            app.alert("MAX : 10");
    }else if(optionValue == "Op1"){
    nNodes = Page2.MDList.resolveNodes("MDList[*]").length;
    if (nNodes < 10){
    var obj = "";
        obj = Page2.MDList.instanceManager.addInstance();
        obj.presence = "visible";
            app.alert("MAX : 10");


0 Replies