The preSubmit for a Master Pages button fires several times.

I coded the JavaScript following in the event preSubmit for a submit button that will result in a deletion of the database.

Form1. #pageSet [0]. Page1.ButtonAreaTop.DeleteButton::preSubmit:form - (JavaScript, client)

var resp = xfa.host.messageBox ("Delete this deposit?" ) , 'Check' , 2 , 2);

if (resp. == '4') {xfa.event.cancelAction = false;} }

else {xfa.event.cancelAction = true;} }

The script works, but because the button is on the Master Pages and the form has several pages, the preSubmit event is called as many times as there are pages.  So, the user must answer the same question several times.  It's a little embarrassing.

Does anyone have an idea on how I can keep the DeleteButton on the Master Pages and stop several times (once for each page) display of the message box?

This gives a test:

if (Page1.index==0){
var resp = xfa.host.messageBox("Delete this filing?","Verify",2,2);

if (resp == "4") { xfa.event.cancelAction = false;} 

else { xfa.event.cancelAction = true;}
}

Kyle

Tags: Adobe LiveCycle

Similar Questions

  • When I hit the + key for a new page, all my widgets have disappeared. All my sites are listed is no longer. How to re - install?

    I changed my search engine of Norton. Now when I click on the tab for a new page, it happens with search for Norton and I don't have my widgets with my sites. I have removed the research and tried everything to get widgets to my sites favorite on when I hit the sign '+' for a new page.

    Need help

    Check and see your current newtab setting:

    Type of topic: config< enter > in the address bar.
    If a warning screen is displayed, press the button to be careful .
    At the top of the screen is a search bar. Type browser.newtab.url
    This indicates what to show when a new tab opens Firefox.
    If you want, right click and select Edit. You can change the setting

    topic: Home (Default Firefox homepage),
    on: newtab (displays the more visited sites),
    Subject: vacuum (a blank page),

    or you can enter any web page or Subject: page you want.

    The same instructions are used to the new setting of the window, classified
    browser.startup.homepage.

    Start Firefox in Safe Mode {web link} by holding down the < shift >
    (Mac options)
    key and then from Firefox. Is always the problem?

  • Bring widget of Composition at the base of the footer of a master page?

    I have trouble getting the composition widget to respond to flower with the bottom of the footer of a master page. I have the box footer on the widget and all eyes is checked OK in the design window. But once I have publish or preview the site composition is pushed above the other elements on the page footer.

    slideshow in design master page.PNG< design window

    slideshow in preview.PNG< preview

    Can someone shed some light on why Muse made it and any way to possibly fix for the composition is evenly at the base of the page?

    Thanks for your help!

    Hello

    Please objects that you use as a group footer and then check a footer of the Control Strip.

    Thank you

    Sanjit

  • Why is the text in my master page header reformatted after the publication of Business Catalyst?

    Everything goes well with the text in my master page header in Muse, but when you are viewing my site online, the text is reformatted and a biased. I contacted tech support, and they told me that there is a problem with Business Catalyst, they are working on right now. The workaround is to open your site in Muse, click 'File', choose 'Properties of the Site' and under "Advanced", uncheck «Enable in the browser Edition.» Once you publish the site again, the problem should disappear. I'm curious to hear if anyone else has had this problem and if this workaround is successful or if you know other solutions.

    Hi Rebecca,.

    If you are publishing to Business Catalyst, go to file > properties of the Site in Muse. The 'Advanced' Panel will turn off IBE. We will address this problem in an update very soon.

    Kind regards

    _Ankush

  • What is the best way to create the layout for a single page website in Adobe Muse?

    I was wondering the best way to create the layout for a single page website in Adobe Muse. Does anyone have any suggestions?

    You can have access to this tutorial (and their other) a month for only $9.99. Is it too expensive for you!

  • How can I use a vector image to stretch with the background in Muse master pages?

    How can I use a vector image to stretch with the background in Muse master pages?

    Click on the 'Fill' text not the drop-down arrow.

  • view the code for two different pages at a time

    HI - in other editors I've used I've always been able to implement the code for two different pages so that I can watch side by side to compare. I can't find a way to do this in Dreamweaver. Anyone know if this is possible?
    Thank you

    Found. Always after asking for help! This is the "cascade" in the Windows menu.
    Thanks anyway!

  • I have to press the button 'On' several times to start the small Dell desktop computer.

    After that I turned on the power strip, sometimes I have to press several times the button "On" until the computer stays on.  I see the small lights and most light in the power button lights up, but then they both leave, and the computer turns off.

    If it's only a month, contact Dell Technical Support for warranty repairs.

  • The installation of Service Pack 2 for Vista failed. I tried several times. Message reads "not successful." "Element not found". I click on the 'Détails' link and it shows the following error: ERROR_NOT_FOUND (0 x 80070490).

    The installation of Service Pack 2 for Vista failed. I tried several times. Message reads "not successful." "Element not found". I click on the 'Détails' link and it shows the following error: ERROR_NOT_FOUND (0 x 80070490). I tried in several ways through the links suggested to solve the problem and nothing has worked.


    I turned to the forums and I saw that many, many people have the same problem with Vista SP2 Upgrade. Microsoft and several of its Vista customers realized that Vista has a lot of problems, but people who have need of the service. Being able to download and install the SP2 can make Vista more stable, but I get the same message mentioned above, and so I am sure are a lot of other people who are trying to get Service Pack 2 integrated into Vista.

    0 X 80070490 - ERROR_NOT_FOUND
    Corrupted system file; You will need to perform an upgrade on the spot or reinstalling the operating system.

    The error you receive occurs if there is corruption in the manifest of component maintenance base.

    Ignore the title: the "Windows features" dialog box is empty in Windows 7 or Windows Vista, or you receive an error message that includes the following code when you try to use Windows Update: "0 x 80073712".
    http://support.Microsoft.com/kb/931712
    "Explains the SFC / Scannow.

    A repair install is the usual solution of SFC/scannow does not work.

    You receive an error code "0 x 80070490" when you use Microsoft Update or Windows Update Web sites to install updates
    http://support.Microsoft.com/kb/958044

    NB: If you have installed SP1 for Vistahttp://support.microsoft.com/kb/948537

    Step 7 (method for Windows Vista), the * UPGRADE option is not available because SP1 has been installed.

    Uninstall SP1

    See also:

    How to overcome error 0 x 80070490 when installing updates in Windows Vista/Server 2008
    http://blogs.msdn.com/andrekl/archive/2008/09/29/how-to-overcome-error-0x80070490-when-installing-updates-in-Windows-Vista-Server-2008.aspx

    TaurArian [MVP] 2005-2010 - Update Services

  • My hard drive and the Extras have plenty of space. Yet several times each and every day, I'm getting flashed "virtual memory minimum insufficient..." Virtual memory pagefile... "Any joy? Please help if you can. Thank you. Cecilia.

    Question

    I have another type of problem with Firefox

    Description

    My hard drive and the Extras have plenty of space. Yet several times each and every day, I'm getting flashed "virtual memory minimum insufficient..." Virtual memory pagefile... "Any joy? Please help if you can. Thank you. Cecilia.

    This has happened

    Each time Firefox opened

    Only a few weeks ago, (tried everything)

    Troubleshooting information

    ?

    Version of Firefox

    3.6.3

    Operating system

    Windows XP

    User Agent

    Mozilla/5.0 (Windows; U; Windows NT 5.1; en - us; RV:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)

    Plugins installed

    • -Adobe PDF plugin for Firefox and Netscape
    • Default plugin
    • Shockwave Flash 10.0 r45
    • Windows Presentation Foundation (WPF) plugin for Mozilla browsers
    • Java plug-in 1.6.0_07 for Netscape Navigator (DLL Helper)
    • Npdsplay dll
    • DRM Netscape Plugin store
    • DRM Netscape Object network

    Read about virtual memory here: http://www.ehow.com/windows-xp-virtual-memory/

  • Hi, I have a Lightroom on PC 5.  I read it has encountered an error while reading the cache memory and must leave the preview.  I put off my computer several times and try several times to open lightroom.  But no success!

    Hello

    I have lightroom 5 on PC.

    I read it has encountered an error while reading excerpts from the story of cache and must leave the preview.

    I have put off several times my computer and try to open several times lightroom but not success.

    Thank you

    Delete the folder named child Previews.LRDATA shooting. Do not remove anything else.

    There is a button to translate each message, you can use it to translate into French.

  • Can not stop the Windows Help and Support screen to appear several times

    I tried to us Windows Defender and features WindowTurn on or off programs in vain to stop the Windows Help and Support screen to appear several times offering assistance on everything that I've just selected if it is a selection of function or the word internet. The copy of Vista came with my new Dell laptop. I have another laptop HP with Vista but do not have to go through this on this subject.

    Advice to address this very frustrating situation would be appreciated.

    Hi Maree33,

    Let's run Windows Update and make sure that you have all the latest patches and service packs loaded.  In Internet Explorer click Tools then Windows Update and follow the instructions.

    You can also give a quick call Dell and see if this is a common problem with their OEM version.

    Please let us know the results.

    Brent
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • When I try to start lightroom 6 it opens only the first window, but nothing more. ligthroom closed several times, restarted the computer, update system, nothing. What can I do?, when I try to start lightroom 6 it opens only the first.

    When I try to start lightroom 6 it opens only the first window, but nothing more. ligthroom closed several times, restarted the computer, update system, nothing. What can I do?, when I try to start lightroom 6 it opens only the first.

    Hi silvers.

    Please make sure that your graphics card and Lightroom 6 are up-to-date. Latest version of Lightroom is 6.4.

    Please check the FAQ and troubleshooting of Adobe Lightroom GPU and disable the use of the GPU in Lightroom.

    What is your operating system?

    Kind regards

    Assani

  • Out of nowhere I get this error message "the application could not start properly (0xc000001g). Click OK ot close the application. "I have uninstalled and reinstalled several times.

    I nowhere hand, I get this error message "the application could not start properly (0xc000001g). Click OK ot close the application. "I have uninstalled and reinstalled several times.

    Hi Kingsberry and almathof,

    Please refer to this thread: Re: Premiere Pro 2015 won't open after the recent update

    Thank you

    Regalo

  • Vertical and submenu menu with Accordion for multiple master pages.

    Hello

    , I created a menu and a submenu with accordion, widget, my site has multiple pages and more master pages, how to do vertical menu of the homepage is also a menu of other pages or other master pages, because if I copy the vertical menu object on the other master pages, this isn't the same object, if I make a change in the menu of the a-master I also make the same change to menu b-master , so there is more work to do but there is a big problem for navigation because when I click on a submenu item I change my page, so I load the master page associated with the page loaded years then a new menu now appears as closed and I want to keep open that it was opened when I clicked on the first time.

    I hope that's clear...

    Thank you.

    JC Quirin.

    New: Create a master with no menu and the masters of the child with the menus you need. Assign the child mastes adapted to your layout.

    To create child master pages, create a new master and drag the master parent on it.

    I think, you used an accordion wigget for you the menu. If so, you can open this accordion, as it should be in Design view, in the various masters. It should open in this State, when you open a page using that master.

Maybe you are looking for

  • How do I download pictures from iCloud in folder on Mac

    Is Hey Folks - possible to upload photos in iCloud photo library in a folder on your Mac hard drive? As it is now, I can select a bunch of pictures but must take into account for open/save box dialog for EACH photo! Very inefficient way of doing thin

  • Satellite P100 - its becoming distorted / crackling

    My sound started to stop and start to deform / crackling.I installed the latest version of the bios and audio drivers, but sound is still the same.Connection to external speakers does not solve the problem either.Can anyone help?

  • Bell 400-314: CPU Upgrade

    The motherboard is a Greenwood and the processor is an AMD E1-2500. The CPU can be improved, and if so which ones compatible?

  • suggestion of cluster merging

    Hi all! I'm developing a system where I need to pass data through the different libraries and processes. To do this, I created a giant group of data that will be used throughout the entire system, called SystemData. So far, everything is simple. My p

  • connection with the printer problem

    Since the evolution of the router, I can not connect with my Epson printer