closing a form after a box of xfa.hostmessage Javascript

I have a form with a checkbox which, when activated, displays an error message using Javascript xfa.hostmessage on the click event.  I want the form to close after clicked 'OK' the Javascript warning box.

I tried to add an app.execMenuItem (Close); script after script xfa.hostmessage box, but it did not work.  I also tried the app.execMenuItem (Close); the output of the box event script, nothing will do.

Is it still possible?  Any help is greatly appreciated.

Hello

the massageBox method has a return value, you can use to determine if the user clicked OK or not.

if (xfa.host.messageBox("Close Doc?", "Close Doc", "2", "1") === 1) {
          event.target.closeDoc(false);
}

Tags: Adobe LiveCycle

Similar Questions

  • What is happening in the original file of the photo when I import it in Photos and I have the "Delete after import" box checked?

    What is happening in the original file of the photo when I import it in Photos and I have the "Delete after import" box checked?

    When organizing photos for Photos for Mac app, I find that the Photos makes "copies" of files within the library of Photos and must reference a file if your settings are such that you do not copy the original files in the Photos app.

    Trying to manage the disk space for the Macbook Pro.

    The delete after import is available only when you import a device - a camera, card, an iPhone, but not when you import files from a folder on the system drive.

    You can delete the local image files of your system drive yourself, once you have imported the Photos and they were copied in the photo library.

    I would never use the option "delete after Import. The files will be deleted until you can check if the files have been imported correctly. If you find out later, that some of the imported files are corupted and illegible, it will be repeated o toolate import, because the files have been deleted from the device. Or worse, if pictures should plant a reason any during the import, all the pictures will be lost, if you have enabled "delete after import.

  • How to reset a full form after entering some values?

    I'm new in the adf. I want to reset my value of the form after you have entered a wrong value. Can someone please help?

    Thanks in advance.

    Bogoss

    It's strange

    Check once this method (same thing but with comments and advised me to the console output)

        public void resetAction(ActionEvent aE) {
            AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
    
            System.out.println("***Calling Method to reset form**");
    
           resetValueInputItems(adfFacesContext, searchForm);
        }
        private void resetValueInputItems(AdfFacesContext adfFacesContext, UIComponent component) {
    
           System.out.println("****Inside Method***");
    
            List items = component.getChildren();
    
            for (UIComponent item : items) {
    
                //resetValueInputItems(adfFacesContext,item); //uncomment in case of nested UIComponents
    
                if (item instanceof RichInputText) {
                    RichInputText input = (RichInputText) item;
    
                    if (!input.isDisabled()) {
    
                       input.setValue("");
    
                      adfFacesContext.addPartialTarget(input);
    
                     System.out.println("**InputText Cleared**");
    
                   }
                } else if (item instanceof RichInputDate) {
    
                    RichInputDate input = (RichInputDate) item;
    
                    if (!input.isDisabled()) {
    
                        input.setValue("");
                        adfFacesContext.addPartialTarget(input);
    
                      System.out.println("**InputDate Cleared**");
                    }
                } else if (item instanceof RichSelectOneChoice) {
    
                    RichSelectOneChoice input = (RichSelectOneChoice) item;
    
                    if (!input.isDisabled()) {
    
                        input.resetValue();
    
                        input.setValue("");
    
                        adfFacesContext.addPartialTarget(input);
    
                       System.out.println("**DropDown Cleared Cleared**");
                    }
                }
            } //end -for each loop
        }
    

    Ashish

  • How can I get rid of the 2nd line of signature with an email requested line under form after its creation in a widget

    So I created a widget or a hosted form, and after finishing to complete to have a single view of signing, he puts another section or area below which requires another signature and send an article I don't want to have there. It creates another page as well because my original signature line is down.

    Then... How can I get rid of the 2nd line of signature with an email requested line under form after its creation in a widget

    Hello

    By default the Widget to always an email and if you have not added field which, E-Sign would put a signature block (which consists of Email field) at the bottom of the document.

    Kind regards

    -Usman

  • If I create a form using the free trial software, will I be able to use and access the form, after the trial period is over?

    If I create a form using the free trial software, will I be able to use and access the form, after the trial period is over?

    Yes, you can access the project that you created after the trial is over, but you need to back it up.

    Concerning

    Stéphane

  • Is it possible to create a form with text boxes of "adjustment" to the participants to answer the questions?

    Is it possible to create a form with text boxes of "adjustment" to the participants to answer the questions? Questions are open to everyone, so asking narrative responses.

    Hi landon39843319,

    You can have fields flowing / more dynamic in a PDF of LiveCycle Designer form, but not in an AcroForm (only created in Acrobat).  LiveCycle Designer is a program completely separated used for are delivered with each purchase Acrobat Acrobat XI has been release.  Now you must buy separately.  But LiveCycle Designer PDF forms are wrapped in a shell of PDF so that they will be displayed and can be filled in the free Acrobat Reader DC and earlier versions.

    If you do this in Acrobat with an AcroForm, you have as much information typed into a field that the user wants, but he's going to show everything on the screen.  Displays only the text that fits into the field, then a + sign will appear in the field to indicate that there is more text in this field, you can scroll down to read.  You can also set the automatic font size so that as more text is entered in the police becoming smaller and smaller to adjust the text, but that is usually not desirable for many forms.

    Hope this helps,

    Dimitri

    WindJack Solutions

    www.pdfscripting.com

  • Cannot open forms after changing the port no 80

    Hello

    We have oracle ebs 12.1.3 instance, I changed the default port 8000 to 80. Now, I'm getting the login page without specifying the port no, but my problem is that I can't launch the forms after you complete this task. can someone help me with this

    Kind regards
    Chandrasekhar.

    Hello

    Alhtough Web development server port does not ask that question, autoconfig successfully completed? can u try to bounce application and see if it works?

    What is the result of status adopmnctl.sh

    also check for the error in the apacha/web/form server logs, use below for MOS locate: -.
    How to find the location of installation, automatic configuration, patching, Clone and other newspapers in EBS R12 [ID 804603.1]

    Thank you
    JD

  • Blank page at the end of the form after having distributed

    I have a form of livecycle 7 page that ends up with a blank page at the end of the form, after the distribution and finding no how to remove.  It does not appear in the preview or the hierarchy and I was check many forums and find the answer might be in the pagination, but when I check the pagination of the subform, I don't use a lot of subforms, most of the pages do not have, then I put the page level 'place' to followingprevious and after - continues the parent filling.  At the same time it is a 8 page and we form it simplified and delete a page, and once I created a 2nd master page but it was deleted, so don't know if these things had no effect, but do not know what to do next.  I wouldn't mind just delete the PDF page once it is distributed, but uses "page x of x' in the numbering of the pages so it is distributed with a total number of pages."  Appreciate any help, thank you.

    Hello

    Just a few suggestions.

    Make sure that the pages/subforms are not to repeat (in the object > range of liaison), unless they are explicitly required to do so.

    Also on the last page, make sure that it is not a subform which extends beyond the content area. This can often lead to an additional page, but it usually shows in the designer.

    Niall

  • Click-box behavior and call javascript

    Greetings,

    While working on a project, I noticed odd behavior regarding the behavior of click-box where there is more than one box click on a slide.

    Here's the situation:
    I have a lesson in Captivate project (2). In several slides, I have a box on the slide where the user can access material outside the lesson. They do so via clicking on a click box. The click box is set to fire a javascript that opens additional content (external url) in the window which 'floats' above the slide currently displayed.
    Javascript is a script of browser window open standard with the parameters passed.

    Here are the called script (it is located in standard.js):
    function openBrWindow (theURL, winName, features)
    {
    Window.Open (Theurl, winName, Features);
    }

    This script is called in Captivate in:
    Insert-> Click-box-> if the user clicks on inside the box of success-> run Javascript

    An example of a typical call:
    Box click-> JavaScript: - > in the window/field is:

    JavaScript:openBrWindow('_ _http://www.mydomain.com/about/org-Pol/f-07/f-07-016.html','mypolicy','width=800,Height=600,ScrollBars=yes');

    It works very well. A window with this URL opens on the slide arrested.

    Strange behavior happens where I have more than one of these boxes click on a slide. If the user clicks on a second click box, the correct URL (different) opens in a window is OK, but the progress of the slide (now behind the new window open). It should not go to the next slide. It should stay put until a user clicks on a particular button to advance.

    Has anyone seen this type of behavior before? Is this a bug in Captivate 2? Or a bad javascript call? Any thoughts?

    Thank you for your comments.

    TPK

    Hi TPK

    When you change the properties of the click box, note that there are two buttons to the right of the field 'JavaScript '. One of the points of suspension (...) and you have probably clicked that one to get into the script. The other is an arrow down. You must click on the arrow and uncheck the option "continue playing project." You will need to do this for each click box, the user can interact with where you do not want to continue if the user clicks on the slide.

    See you soon... Rick

  • After download, box that says 'you have chosen to open' 'gray out' after selecting the button browse and full page is frozen / crashed. PC reboot needed.

    Hi Firefox
    After I finished downloading a file, see the Mozilla download page.
    I right click on the download to open it and the box "you have chosen to open" appears in the lower right of the screen with the "radio button", already selected for "open with...
    So far, all this is perfectly normal.
    However if I click on the "Browse" button to make a choice then the title at the top of the box, closing "Cross" and the "OK" button all gone gray and are unusable.
    In addition, all the page Firefox is frozen / crashed and cannot be closed.
    I have no other option but to reboot the PC.
    I tried various suggestions I found on your forums, including the removal of cookies, disable hardware acceleration, and I uninstalled and reinstalled Firefox 12.
    I looked at your "troubleshooting information" and it does not show a graphic driver problem. However, my driver is the latest driver nVidia for my GeForce FX5200 card and it worked fine with firefox 12.

    WebGL RendererBlocked for your version of the graphics driver. Try to update your driver graphics version 257.21 or newer.
    GPU accelerated Windows0. Blocked for your version of the graphics driver. Try to update your driver graphics version 257.21 or newer.

    Here are the specs of my computer:

    MSI K8N Neo motherboard (N1996 MS-7030 VER: 1),
    an AMD Athlon (tm) 64 processor 3200 + (Socket 754)
    3 GB of RAM.
    At present, it has a NVIDIA GeForce FX 5200 graphics card.
    The system runs Windows XP Professional 32-bit with SP3 and all the drivers are up to date.

    I have used Firefox for many years and not that another browser would never use!
    I did have a problem until now. I hope you can help me.

    Kind regards
    Chris

    Follow the suggestions mentioned in the following articles:

    Check and tell if its working.

  • Customizing Forms - hiding input boxes and go to the

    Investigation > account debtor survey > Transactions > Transactions

    A form is displayed when you click Find (flashlight). My company uses only the 2nd and 4th of white boxes. I never did a customization of forms, but guess it's possible so when I could make sure do not display these 1st and 3rd boxes looking and 2nd and 4th left shift boxes. No indication of how I can do this would be appreciated.

    I can email a screenshot so someone has a good idea what to do. Thank you.

    Published by: Hawkeye_Jon on July 6, 2011 09:03

    (1) the x - pos and y - pos are in the same section where you found the Visual attribute.
    (2) it doesn't matter that you are trying to customize a search box. It is similar to a regular shape.
    (3) after the addition of customization, can you save and exit the screen, and then come back?

    Sandeep Gandhi

  • form field check box control in word with report generation toolkit for Microsoft office

    Hi all

    Happy new year!

    In the word template, I insert the checkbox field. It has a bookmark name "Check1."

    Now, I try to checked or unchecked this field using the tool to generate report for Microsoft office and I couldn't. If someone now how to do? I'm using LabView 8.0

    Thanks in advance,

    Boris

    Hi all

    After I posted the question I found how to do it.

    I use the macro feature to control the box.

    Here's the diagram:

    Thank you

    Boris

  • Slow closing of windows after installing IE8

    After installing IE8 on my computer, I have problems with closing windows open on my desktop.  The window closes real slow, in the sections of the top to the bottom.  There is no problem with opening the windows, that goes as fast or faster than before.  And other programs on my computer also work faster than before, with no problems at all. Even programs that use a lot of RAM, such as graphic design programs. Just the closure of the programmes are slow and extremely annoying to work with.

    I hope one of you can help me with this problem. everything worked pefect before installing IE8

    Thank you for your attention

    Thinking that I let you know, the problem resolved itself today after an update to MacAfee and after an update to Apple Itunes and Quicktime.

    Since I also have MacAfee on my laptop, and I don't have the problem, here, I think it was probably the previous version of the software for Itunes or Quicktime which caused the problem, because I don't have these programs on my laptop.

    I hope it helps someone other too. :-)

  • Windows 7 keeps closing my computer after 1 min of inactivity

    Symptoms: The lock screen appears after 1 minute of inactivity.

    Details: The computer is a laptop ASUS U46E under Windows 7 Home Premium. Screensaver increased wait to 999 minutes and unchecked "on Resume, protect by password". Past delays on power settings and the settings advanced. After all this, I have to restart to stop the annoying locking of computer. But after that I closed the lid of the laptop, which will put computer to sleep/hibernate, and then open it again, the question is always no matter what timeout settings. I tried to uninstall the Power4Gear, delivered power management software w / ASUS laptop and used Windows built in the balanced power plan.
    It's really boring while watching a DVD. I tried everything I could find on the internet without success. Any help is appreciated.

    Hello

    Did you go to options advanced power and on the left hand bar there is a link that says, I can choose the closing the cover. Then you look down windows and in the gray area, there are a few options and one that must be marked States request password on awake. Click on the link that says I would like to change the options and change. That should do it.
  • How to reset the file input form after submitting the form with an ADF file

    I use oracle 12 c. I have a form where I have 3 fields and an af:inputFile where I need to download the file and the final backup.

    I can't use for inputFile valueChangeEvent because if I user ResetUtils then I won't get the invalid entry form.

    On record everything works fine but when I add once again a record then the last file update still shows in inputFile (its not reset).

    After save if I set the binding of the null input file then do partial trigger for the component by using its page load Binder takes a huge time to save so I can't use it.

    Here is my code

    < af:panelFormLayout id = "pfl1" rows = "3" >

    < af:inputText value = "#{bindings." Filename.inputValue}"label =" #{bindings. " Filename.hints.label}.

    required = "#{bindings." Filename.hints.Mandatory}.

    columns = "#{bindings." Filename.hints.displayWidth}.

    maximumLength = "#{bindings." Filename.hints.Precision}.

    shortDesc = "#{bindings." Filename.hints.ToolTip}"id ="9 ".

    contentStyle = "width: 150px" showRequired = "true" >

    < f: validator binding = "#{bindings." Filename.Validator} "/ >"

    < / af:inputText >

    < af:panelGroupLayout id = "pgl350" layout = "horizontal" >

    < af:inputFile label = "Select" id = "if51" value = "#{ContractDocumentUploadDwn.file} '"

    showRequired = "true" binding = "#{ContractDocumentUploadDwn.inputFileBinding}" / >

    < af:button text = "Upload" id = "b353" action = "#{ContractDocumentUploadDwn.uploadPortfolioDoc}" / >

    < / af:panelGroupLayout >

    < / af:panelFormLayout >

    Java code:

    {} public void savePortfolioDoc (ActionEvent actionEvent)

    Add the code in the event here...

    DCIteratorBinding iter = getDCIteratorBinding ("portfolioDocument1Iterator");

    UploadedFile myfile = this.getInputFileBinding () .getValue () (UploadedFile);

    String link = "Commit1";

    String popUpId = "p2";

    genericSaveDocuments (actionEvent, iter, myfile, lie, popUpId, "Portfolio"); Saves the document

    iter.executeQuery ();

    ITER. Refresh (1);

    setInputFileBinding (null);

    ResetUtils.reset (actionEvent.getComponent ());

    }

    Please help me

    See this line in your code

    You use a variable as the inputFile value so you must set its value to null

    Write like this-

    this.setFile (null);

    Reset the inputFile component after download

    ResetUtils.reset (inputFileBinding);

    Ashish

Maybe you are looking for

  • Can you do the sticky Bookmark button entries?

    My Favorites are hierarchical - files in folders. I often work with several bookmarks in the same subfolder. But whenever I want to choose a different bookmark (by clicking on the bookmark button), I have to drill again down to the subfolder. It woul

  • Sony WT19i not updated to Android 4.0

    HelloI recently purchased sony eric love with walkman (wt19i) and when I tried to updeage it to android ICW by companion sony PC, I got this erroe - in the section prepare - "unable to install or start phone software update components. The phone is c

  • Re: Toshiba Satellite Pro L300 - 24L and support

    Hello I need help on my laptop, which was bought in France a few years ago.But the 24 L does not appear in the Toshiba laptop model available on the sites Web French.My serial number does not work also. Is this normal?I'm sure it's a French model, bo

  • You try to run my fav game

    Hi, I'm launching Call of Duty 4 and I have a first problem with the MSS32.dll file, I downloaded and then came this error code qu'ail_speaker_configuration@20 cannot be found in the library of dynamic links MSS32. DLL, I tried everything, look in bl

  • Windows vista not install updates, how can I solve this problem

    I took my computer compaq running on windows vista & my windows updates will not install what can I do?