Avatar

Correct answer by
Level 10

Hi

The messageBox method will return a 4 if the Yes button is clicked, so

 

var button = xfa.host.messageBox("You are about to remove an entry in the plan. Do you wish to proceed?", "Removing Entry!", 2, 2);

if (button == 4)

{

   this.resolveNode('plantable._planrow').removeInstance(this.parent.index);

   if (xfa.host.version < 8) {

     xfa.form.recalculate(1);

   }

}

 

View solution in original post