Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Message box not appearing - function not functioning!

$
0
0

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


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>