WARNING Message - "delete this line?' before that is done.

I am trying to find a way to warn the user that what they clicked the button will remove the entire line. If they answer 'Yes' to continue the deletion occurs. If they answer 'No', the line does not remove.

Hello

If you declare a variable to the value of the response in a dialog box, you can test this response and take action:

// Prompt the user
var nResponse = xfa.host.messageBox("You are about to delete this row. \n\nDo you want to continue?", "Deleting a row", 2, 2)

// Test the response: Yes = 4
if (nResponse == 4) {
     // You deletion script
}

Hope that helps,

Niall

Tags: Adobe LiveCycle

Similar Questions

Maybe you are looking for

  • Dysfunctional wireless on Satellite L550D

    I have a Satellite L550D, and my Realtek rtl8191 wireless card has stopped working and my program Tempro told me that I had to download the latest driver, so I did.It's the new driver software not moved, so now I m left with a wireless card that won

  • access points and router

    Hello. would it be possible to have two access points wireless that will be connected to a router. access points have the same name, if you log on to one or the other with all the problems. If this is possible is it all there, I can get information o

  • Lack of backup scheduled Windows 7.

    A few questions about the built-in Windows 7 backup program. If my computer is turned off during the time I have a scheduled backup is him asking to postpone that backup when the computer is turned on or the next backup? The second question is after

  • Slow interface

    The gui is simply slow for everyone? Like, expanding or to effondrantes of the items in the Properties menu (as dangle, Minesweeper, face, etc.) takes like 5 seconds? I see people post on the response time of puppet, but I don't have the patience to

  • Android versions

    HelloWe want our Android app to show only the folio of phone on phones and only tablet folios on tablets. I know that we can target the refunds in DPS app Builder. I wonder if we can reach an application or need to run separate applications for phone