Hi there,
newbie here so be kind please!
I have a table in my form with a remove button for each table row - this works fine, but it occurred to me that it would make more sense to bring up a message box warning the user that they are about to delete a table row. I've tried and tried, but whenever I test or save the file nothing now happens when I click the remove button - no warning window appears and the remove button does not remove the row.
Here's my code:
form1.plan.plansub.plantable.planrow.Remove::click - (JavaScript, both)
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);
So, I'm probably doing something really obvious - please help!
Sunil