Avatar

Level 3

Hi jnicholas,

I have run the file in acrobat pro and I get the message

SyntaxError: invalid object initializer

4:XFA:form1[0]:plan[0]:plansub[0]:plantable[0]:planrow[0]:Remove[0]:mouseUp

I'm a real beginner here and although I can see the logic in scripting I'm not versed in it... not yet anyway. Any help would be gratefully received.

form1.plan.plansub.plantable.planrow.Remove::mouseUp - (JavaScript, client)

var cMsg = "Warning: Clicking YES with remove the current entry from your plan";

cMsg += "\n\nDo you want to continue?";

var nRtn = app.alert({

cMsg,2,2,"Warning"});

if (nRtn == 4)

{ this.parent.parent._planrow.removeInstance(this.parent.index);

}

xfa.form.recalculate(1);