Adding a dialog box pop-up warning when you click the reset button

Hello

I would add a warning dialog to the "reset" button that appears when the user clicks on the button with a text saying something like "are you sure you want to reset the form?" before the form actually gets reset. The goal will be to help users avoid to reset the form on the accident. Any ideas would be appreciated, I'm a little in the age of darkness using LiveCycle Designer 7.0.7.

Thank you

S.

Hello

It should work in v7. Put it in the click event of the button reset.

var nButton = app.alert({)
CMSG: "WARNING: you are about to reset the form.» \n\nDo you want to continue? «,
CTitre: "your title here"
nIcon: 1, nType: 2
});

If (nButton is 4)
{

xfa.host.resetData ();

}

The script puts an app.alert before resetting. If the user, click Yes, and then the form is reset. If not, the form is not reset.

Good luck

Niall

Tags: Adobe LiveCycle

Similar Questions

  • Audio, attached to the text box does not restart when you click the Replay button

    Hello

    I'm currently having problems with audio / reading slides. The characteristics of sliding replay I tried (listed below) read the images and text boxes, but the audio attached to text boxes do not restart, continue as if nothing has happened during the synchronization of text boxes and images have been reset. This happens also with videos and flash files - the slide reads but the videos and flash files continue to play.

    The two replay options slide, I tried:

    With the help of a widget: http://www.cpguru.com/replay-slide-widget-for-adobe-captivate/

    Advanced use of stocks: http://www.youtube.com/watch?v=vhT7B5I3fw8

    Is there a setting I can change to make audio/video restarts along with other objects on the slide?

    Thank you!

    I thought about it--(yay!)

    Here is a screenshot of the code that worked... need to replace a 'framework' with a 'landslide' command command

  • How to open 2 sites on start and 1 Web site when you click the home button?

    How to open 2 sites on start and 1 Web site when you click the home button?

    You can change your shortcut on the desktop Firefox with two starting URLS. To try:

    • Shortcut on the desktop: right-click on the icon, choose Properties
    • Icon taskbar pinned: clic click right on the icon, right click in Mozilla Firefox, click on properties

    Windows normally selects the shortcut tab. If this is not the case, go ahead and click on the shortcut tab.

    You will see the target highlighted. On 64-bit Windows, which is usually either not less the following:

    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    

    For the specific shortcut launch pages, you can add them to the end, for example:

    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -url "http://www.dilbert.com/" -url "http://www.gocomics.com/pearlsbeforeswine"

    After OK'ing the Properties dialog box, you can test everything right now to confirm that Firefox is now launching a window with tabs. Either:

    • Double-click the shortcut on the desktop
    • right click on taskbar icon pinned, click Mozilla Firefox

    Who do you want?

  • I'm unable to deselect specific fields when you set the Reset button in a form.  I can only "select all" or "deselect all". Someone at - it happen?

    I'm unable to deselect specific fields when you set the Reset button in a form.  I can only "select all" or "deselect all". Someone at - it happen?

    Yes, this is a common problem. Use the SPACEBAR to toggle individual mailboxes.

  • Can you have a different action when you open your browser when you click the home button in the browser?

    I have two specific pages set as my home page (s) for when I open Firefox; one is a Digital Radio streaming page, and the other is Google. With the browser open, I would like to be able to click on the home and JUST go to Google, not to reopen the two pages. Is this possible?

    You can change your shortcut on the desktop Firefox with two starting URLS. To try:

    • Shortcut on the desktop: right-click on the icon, choose Properties
    • Icon taskbar pinned: clic click right on the icon, right click in Mozilla Firefox, click on properties

    Windows normally selects the shortcut tab. If this is not the case, go ahead and click on the shortcut tab.

    You will see the target highlighted. On 64-bit Windows, which is usually either not less the following:

    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    

    For the specific shortcut launch pages, you can add them to the end, for example:

    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -url "http://www.dilbert.com/" -url "http://www.gocomics.com/pearlsbeforeswine"

    After OK'ing the Properties dialog box, you can test everything right now to confirm that Firefox is now launching a window with tabs. Either:

    • Double-click the shortcut on the desktop
    • right click on taskbar icon pinned, click Mozilla Firefox

    Who do you want?

  • When you click the Start button, the menu appears and then disappears a second later

    I continue to by clicking on the start menu and it pops up then a second later is disappears

    Right-click on the Start button, select Properties, click on the tab bar tasks, clear the checkbox to auto-hide the taskbar.

  • submit the form when you click the shortcut button

    At the minute I have 2 buttons on the popup each sends the form and assigns a different value for a particular column. How can I get the original window with the form to submit (the record was created) and when one of these buttons are engaged on the popup. This popup would also end the click of a button...

    Thanks in advance

    Stefan

    Stefan,

    Take a look at this example:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:50

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Is it possible with CSS menu that appears when you click the menu button on a menu bar of style?

    I'm trying the menu that appears when a menu button is enabled in the style menu bar. I am able to style the menu bar and menu button in the action bar very well.

    However, I was completely unable to style from the Menu that appears.

    I asked the same question over to StackOverflow.com, but have not yet received a reply.

    Basically I have a menu that is set up as a bar:

    <MenuBar VBox.vgrow="NEVER">
      
    <menus>
      
    <Menu mnemonicParsing="true" text="_File">
      
    <items>
      
    <MenuItem mnemonicParsing="true" text="_New Project"/>
      
    <MenuItem mnemonicParsing="true" text="_Open…"/>
      
    <MenuItem mnemonicParsing="false" text="Quit"/>
      
    </items>
      
    </Menu>
      
    </menus>
    </MenuBar>

    I was completely unable to style the MenuItem or container here when they are indicated. I have dug through CSS of the skin of the Caspian Sea, but was unable to find out what anyone who specifically the. I tried to substitute the values of the ContextMenu, Menu, menu button and MenuItem that is located in the Caspian Sea, but nothing seemed to affect this menu.

    The menu is clearly inconsistent with the menu system, so why am I unable to style it?

    Isn't this possible? It will be possible in the future?

    Thank you for answer two. Unfortunately, what was proposed was not enough to solve the problem by itself. I didn't know that .menu - the point has had a child of .label who could bear the title, but that alone was not enough to correct the problem.

    Fortunately, Uluk Biy on StackOverflow.com was able to answer the question. He stressed that wanted me the property - fx-skin. I realize that I did not provide enough information here for users to come to this conclusion, so I wanted to thank you for helping with the little information you had.

    It seems that, once I've added the property - fx-skin .context-menu, I am able to style menus.

    Thanks again guys.

  • When you click the back button in Internet Explorer, I went back to the same page, I am already on. Problem seen in Google search engine.

    Problem seen in Google search engine.

    I used Google for years without problems - I work from home as a freelance journalist.  But this last few days, if I search for something on Google from IE and click on a result, I can get the page I want upward.  But then, if I want to go back to the same Google search page to check the other results, I can't go back by clicking on the button 'back' at the top left, as I always did.  If I click it, it just keeps returning me to the page I'm already.  I find no mention anywhere using this problem or any means to remedy.  If I have the cursor hover over the arrow bak, the address of the current page appears rather than the original Google search page, so there is obviously something wrong.

    Thank you

    Hello

    1. This only happens with Google?

    2. don't you make recent changes?

    I suggest you to follow these steps and check if that helps:

    Method 1:

    Try to run Internet explorer mode without modules and check to see if the same problem happens:

    http://Windows.Microsoft.com/en-us/Windows7/Internet-Explorer-Add-ons-frequently-asked-questions

    Method 2:

    Try to optimize Internet explorer and check to see if it helps:

    http://Windows.Microsoft.com/en-us/Windows/help/Internet-Explorer/slow-five-tips-to-boost-performance

    It will be useful.

  • CP9: Text entry box: Lost Focus displayed when you click Submit

    Hello

    I seem to have problems with my text entry areas (TEBs).

    Sometimes, these problems do not appear all the time.

    Later a being that when I click on the button the Focus Lost text caption is displayed.

    I came across the question when you work on a project, so I decided to 3 slides project to test.

    1 BER on the screen.

    • Success goes to the next slide.
    • Failure displays caption built-in failure.
    • Focus Lost shows a text caption.

    Slides mask lost Focus of text caption at the entrance.

    No advanced actions.

    Timeline shows just TEB and lost legend for Focus text.

    CP9 TEB Focus Lost.jpg

    CP9, project that is unresponsive (a new project - only 3 slides), project preview & Preview in the browser. have not yet published.

    I deleted the slide and added a new slide.

    I deleted the cache and reset the preferences.

    Concerning

    Donal.

    The way you described the configuration and screenshots, it seems to be behaving exactly as it should.

    I was expecting to see THE text caption every time that you click the submit button.

    Should the lost Focus event fires when the cursor was placed in field ETB and then you move outside this field and click on anything, which of course would include by clicking on the button submit of the BER itself.

    So far I don't see any bug or issue here.  Can you describe what you think that SHOULD be the case?

  • Cannot find the function edit that was on my old computer and firefox. When you click the Firefox icon, you can collect the text that has been deleted.

    Cannot find the function edit that was on my old computer and firefox. When you click the Firefox icon you can extract the text that was deleted by accident.

    Hello, you can press the alt key to display the menu bar with the Edit menu temporarily. or you can press ctrl + z which is the shortcut for "undo"...

  • Can't let site when I click the back button, it keeps just returning on the site, have to close firefox and try again.

    Can't let a Web site when I click the back button, it keeps just returning on the site, have to close Firefox and restart my search.
    The website below is just an example, it is a little more.
    Is this a problem with Firefox or this particular Web site?
    Thank you for your help.

    I thank very you much for trying to help me.
    I think you pointed me in the right direction, I tried on IE (ugh!) and he worked there. It's been awhile that this HARD drive has been in service and I think it's time to do a clean reinstall of everything.
    Once again, thank you.
    fredsbroke2

  • Why Satellite Pro A300 does not start when you press the power button?

    Suddenly my new Satellite Pro A300 does not start correctly when you press the power button. The situation is the following: when I press the power button is displayed the opening of Toshiba (Leading Innovation) and the disappers image quickly. Then there is a black screen for about 30 seconds. There is a rectangular frame with the text Microsoft Corporation under. And nothing happens however long wait.

    In order to get with the trial starting I then shut down the computer by pressing the power button until the computer turns off. ("The hard way to close")
    Now, I press the power button shortly to turn on the computer. Then, the computer starts normally with the photo to open Toshiba and after a few seconds, I wonder to open the computer in safe mode or in normal mode. I now choose to open in normal mode and the computer opens normally and is ready to work.

    What should I do to get a normal departure procedure?

    When the laptop starts normally (after choosing normal mode) stop your laptop properly using START > shut down option. Next launch should be normal.

    When the OS is moving towards the low irregularly will always ask you how to start this new (secure or normal mode).
    The same thing happen on my Satellite A300.

  • Failure of Options when you click the Dock icon to include 'Desktop in the display (number).

    Failure of Options when you click the Dock icon to include 'Desktop in the display (number).

    I use an iMac 24 "mid-2007. The help documentation tells me how to assign an application to a space is to use this Option. But it does not, while the other three are. Is this an error or something that can be explained? Could there be a work around? My OS is El Capitan.

    Hi peterwhi,

    I understand you are trying to set an application to open its windows on a particular space. To do this, move to the space that you want to use for the desired application, and then choose 'The Office' in the list of options you mentioned see (under Options).

    OS X El Capitan: working in multiple spaces
    https://support.Apple.com/kb/PH21872

    The option that you describe as missing is displayed only if you have connected an additional external display to your iMac and would set the app to open on the iMac screen or the external display.

    Office on the screen [number]: the application opens in the current space on a specific screen (if more than one display is available).

    Sincerely

  • Hi, actually I want the program stops when you press the stop button. but the problem is the program is runing in loop only he doesn't return tile view deleted complete execution of any body can help me for this.

    Hi, actually I want the program stops when you press the stop button. but the problem is the program is runing in loop only he doesn't return tile view deleted complete execution of any body can help me for this.

    Here

Maybe you are looking for

  • Keyboard shortcut 'Command r' has been hijacked

    Command + r is used for many things, but now, whenever I enter this command in any application it just opens the Contacts application.  I have no idea what caused this problem or how to stop it. I looked under system preferences keyboard shortcuts ta

  • Example: HP laptop 15 TS: disable the cursor pointing

    Hi all. new here, so I hope I'm in the right place. I'm having no end of trouble with my 6 month old HP 15 TS Notebook PC, running Windows 10, although this happened the 8.1 win also.  This thing "hover cursor" is driving me crazy! How the hell can I

  • DeskJet 3050 has with Mac Ibook

    One month there has been no problem with Deskjet 3050 a with Mac Book Pro.  Now cannot print Pages.  Have done all the troubleshooting recommended by HP.  Printer's default; the supplies are good.  The printer is idle.  Have you tried both wireless (

  • Pavilion 2310 SW G6: G6 2310-SW - replacement of the CPU

    Hello, is it possible to replace the CPU in this phone? Because I'm not satisfied with the performance of Intel Pentium 2020 Mr., I would like to insert Intel Core I5 2310 M.

  • power supply and integrated graphics card upgrad

    I have an a6767c of office with integrated graphics. I would like to upgrade with a good card modest price. Perhaps nivida 9800? also a new power supply would be advised that told me. I can spend about about 250.00 maybe more I can install myself. Th