Close form after click on send button

Hello,
I would like the adobe form to close after the user clicked on "send by email" button.
I found this code to do it automatically :
app.execMenuItem("Save");
app.execMenuItem("Close");
But I don't see where I can write it as I can't modify the click event.
Any idea ?
Thanks in advance

I don't know if this will work, but what if you have another button that triggers the submit event and the code to close the form later on? Hide the actual submit button from your layout.
"Normal Button" code:
SubmitButton.execEvent("click");
app.execMenuItem("Save");
app.execMenuItem("Close");
Cheers,

Similar Messages

  • Erec - When an External window opens after click of a button

    We are using an Standard Webdynpro Erec Appln.
    When an External window opens after click of a button the smart form embedded in that windows view is not appearing instead and small X mark (in Red)  is appearing with fully plain background
    It is happening only for my system, others are able to view it properly...
    I have cleared the cache, restarted the system and also re-installed the Adobe Reader too..
    But still the problem persists.. Let me know what can be done in this case...
    Thanks & regards,
    Rashmi

    The service that you are trying to use requires integration of adobe with in browser(IE). Check the option [Display PDF in browser |http://lh4.ggpht.com/_E1SpYl0ZbfE/SlI0rfQAxeI/AAAAAAAAAh4/fC9alkf1M78/Adobe_Setting.gif]in Adobe Reader preferences.
    If it still doesn't show the PDF, try to reset the browser setting to Medium and re-open.
    Regards,
    Trikanth Basetty

  • My firefox crashes directly after clicking the firefox-button

    '''1'''. firefox suspended directly after invoke the program
    '''2.''' I changed the "compatibility-mode" to "Windows 98/Windows Me"
    '''3'''. firefox crashes directly after clicking the firefox-button
    -> it opens "Morzilla Crash-Detector"

    -> '''Is my Firefox problem a result of MALWARE ??'''
    * Popups Not Blocked - http://kb.mozillazine.org/Popups_not_blocked
    -> Do a MALWARE check with these Malware Scanning programs. You need to scan with all programs because each program detects different malware. Make sure that you UPDATE each program to get the latest version of their Databases before doing a Scan. Also, Close All other Applications (softwares) before Starting to Run Scans.
    * Malwarebytes' Anti-Malware - http://www.malwarebytes.org/mbam.php
    * SuperAntispyware - http://www.superantispyware.com/
    * Spybot Search & Destroy - http://www.safer-networking.org/en/index.html
    * Ad-Aware Free Internet Security - http://www.lavasoft.com/products/ad_aware_free.php
    Check and tell if its working.

  • After upgrading to Mavericks on my MacBook, I'm not able to download third party applications like Dropbox and MyCleanMac 2.  After clicking the download button, the screen just turns dark and is frozen.  Any idea what is happening?

    After upgrading to Mavericks on my MacBook, I'm not able to download third party applications like Dropbox and MyCleanMac 2.  After clicking the download button, the screen just turns dark and is frozen.  Any idea what is happening?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • HT4483 After clicking the download button, I received the message, 'The item you've requested is not currently available in the U.S. store.

    After clicking the download button, I received the message, 'The item you've requested is not currently available in the U.S. store.

    This is not uncommon.   Not all apps are available in all stores, just as not all OSx apps are available in IOS.    The reasons are many, commercial, legal, copyright, whatever but it won't change your position.   If it says not available, then that is the situation.

  • Loading and displaying other  form on click of a button using swing

    hi,
    i've just started with my first ever swing program. i want to load another UI form on click of a button . how can i do that.

    Sorry for posting last message
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class MainCl extends JFrame
    public MainCl()
    this.setBounds(100,100,400,300);
    btn = new JButton("Click me to show another fframe");
    btn.setBounds(10, 20, 250, 30);
    this.getContentPane().setLauout(null)
    this.getContentPane().add(btn);
    btn..addActionListener(new ActionListener()
    JFrame frm2 = new SecondFrame();
    frm2.setVisible(true);
    public static void main(String [] args)
    JFrame frm1 = new MainCl();
    frm1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frm1.setVisible(true);
    JButton btn;
    class SecondFrame extends JFrame
    public SecondFrame()
    this.setBounds(200,200,200,100)
    this.getContentPane().add(new JLabel("This is NEW FORM"));
    }

  • I purchased the Adobe Creative Complete Plan for Annual Prepaid, and the Check Out just wouldn't proceed. It is still loading after click the confirm button. Dear adobe staff, please assist urgently.

    I purchased the Adobe Creative Complete Plan for Annual Prepaid, and the Check Out just wouldn't proceed. It is still loading after click the confirm button. Dear adobe staff, please assist urgently.

    I am having a similar problem. I am using Chrome and tried on Mac and on PC but the same. Its not completing my order and on PC saying:
    We were unable to process your payment please contact our customer support.......... etc
    But strangely its giving a confirmation button again. It gave me this error upon reconfirmation:
    PMT_000011 : adbehme, en_IE, There is money to authorize, But no Aurthorize delegated were applicable, 12834289525

  • Why does itunes get locked with last update after clicking on search button ?

    Why does itunes get locked with last update after clicking on search button ?

    Why does itunes get locked with last update after clicking on search button ?

  • How to Close InfoPath Form After Submission When Two Buttons Exist?

    I have an browser-enabled InfoPath 2010 form that has two views and a submit button on each view. The form would correctly submit and close the form using one button on the form until the second button was added. After adding the submit button on a second
    view, the second button submitted/closed but the behavior on the first view changed so that the form no longer closes after submission. I’ve researched this and have not yet found a solution to allow closing the form after submission for one of the buttons.
    Things I’ve tried:
     - I’ve attempted creating multiple submit data connections for the different buttons
     - Specifying different Submit Options
     - Try closing the form with the code
     - Add another button to the non-closing view
     - Add duplicate Rule actions to "Close this form: No Prompt"
    Settings:
    Button rules:
     - Submit using data connection: SharePoint Library Submit
     - Close this form: No Prompt
    Button Properties:
     - Action > Rules and Custom Code
    The form Submit Options:
     - Send form to a single destination (a form library)
     - Choose a data connection for submit (SharePoint library submit)
     - Advanced > After Submit: Close the form
    Advanced form options:
     - Filler Features: all items unchecked (not allowing Save, etc.)
     - E-Mail Attachments: uncheck Enable InfoPath e-mail form functionality for this form template
    Resources:
    When considering programmatically submitting and closing the form, I understand from this article that the Rules run before code and I can’t close the InfoPath form programmatically by writing code behind a button that has a rule set on it:
    http://www.bizsupportonline.net/blog/2009/01/how-to-programmatically-run-code-close-infopath-web-form/
    Discussion of creating a custom Save and Submit buttons for InfoPath browser forms:
    http://markhaverty.com/sharepoint/custom-save-and-submit-buttons-for-infopath-browser-forms/

    what if you need to switch views? 
    I have the same problem in a similar situation.  I created a test button to narrow down the cause.  the button submits data & closes the form fine.  however when I add a rule to switch views before the submit & close rule, it
    breaks.  Submit still works but it no longer closes the form.  If I disable the switch-view rule, then it closes fine. 
    I tried added another rule to switch back to the main view but that didn't help. 
    switching views is an integral part of the workflow b/c I want to email the alternate view upon approval & then close the form.  So removing that rule is not a good answer unfortunately. 

  • Report is Blank after Click on Save button

    Hi All,
    I am having a Real Time Infocube, which is been used by Monthly and Yearly report separately using different Aggregation Levels.
    During Monthly report testing, I made changes in Yearly Report (common for monthly as well) and clicked on SAVE button.
    As a result, a new request generated into the Cube, whereas my old request (yellow one) was still there and was containing only 700 records.
    Step1:
    Now,  after that when I activated aggregation level. The output of the report was blank.
    Same thing happened with monthly report also.
    Step2:
    So, I deleted that new request from Cube after changing its behaviour from Planned mode --> Load mode.
    Now, when I tried to get it back. It was asking me to green the existing request (old request).
    Step3:
    when the cube was containing only old yellow request (before changing the behaviour) monthly report was showing me correct data. But, Yearly report was blank.
    So, I manually green the request and changed the behaviour to Planned mode.
    Whereas, Now (after changing behavior to Planned mode) both reports are blank.
    Please help!!
    Best Regards,
    Jatin

    Hi,
    first you the correct settings in transaction RSDIPROP for your InfoCube:
    On tab 'Roll Up' you should set the flag Set Quality Status to OK Automatically.
    Second delete the cache for the planbuffer query; the name of the plan buffer queries are as follows
    - if your aggregation level is defined on InfoCube CUBE the name is CUBE/!!1CUBE
    - if your aggregation level is defined on MultiProvider IPROV the name is IPROV/!!1IPROV
    - if you are using a query on a MultiProvider containing aggregatiion levels delete also the cache of the query.
    Now check the values of your query again.
    Note 1136163 contains the recommended cache settings in RSRT.
    Regards,
    Gregor

  • How to call a custom form on click of a button?

    We have a requirement to call a custom form on clicking a button which is on a standard form. I cant modify the standard form. Is this possible to handle this event from CUSTOM.pll or forms personalization?
    some sample code will help. Thanks in Advance,
    Message was edited by: 988490e8-2268-414d-b867-9d9a911c0053

    Hi,
    I think you are working with Oracle EBS.
    I don't think so that we can able to call the custom form on clicking button.
    We can call the form from the standard form using both custom.pll and form personalization
    In custom.pll using zoom function we can do this and in form personalization we can call the form by using form function, In both we call the form by creating a special menu in standard from and we used to call.
    So please check further, and let me know if any i can help you any.
    Regards
    Sri     .

  • Saving a form on click of a button.

    Hi,
    I need the script to save the form on click of button.I've tried to use "app.execMenuItem("Save");".But it is not working.
    Is there any equvalent for this command in livecycle forms?
    Please Help..

    Unfortunately there is no equivalent and the operation you are trying to do is unsafe. From the javascript reference
    (Acrobat 8.0) The execution of menu items through execMenuItem method is restricted to a short list of safe menus. The execMenuItem method will silently fail if a named menu item is executed that is not on the safe menu list. Menu items may be removed in future releases, or their behavior may change.
    Save is an item on that list. The only way to get it to work is to run it under a privileged context (batch/console/trusted function in js folder)

  • Unable to go back to where I ieft off after clicking the back button

    When I browse photos in Smugmug, after selecting the gallery I want, when I am finished and I click the back button it takes me back to the beginning of the galleries and not where I selected the last gallery or photo. IE and chrome don't do this.

    Let me see if I can make this more clear. In Smugmug I browse galleries and scroll down a page until I see a gallery I want to look at. I may have scrolled down past several hundred galleries before I select a gallery to look at, so I am quite a ways down. Anyway I select the gallery and it opens and I browse all the photos. When I am finished I go to the top and click the back button. If I am using IE it takes me back to the point where I selected the gallery I looked at. However, in firefox if I click the back button it takes me back to the beginning of the gallery and I have to scroll thru all the galleries again and find where I left off.

  • Close window on click of a button

    Hi all,
    I am developing an application in which there are some checkboxes with a button on the window. When we choose these checkboxes (one or more) and click on the button it opens another window which has some textfields and one button. These textfields are for taking certain parameter to run a process which will be called when the button on second window is clicked.
    Now my problerm is that i want to make the second window closed on click of button on second window. But i m not getting the solution.
    This may be a stupid question but as I m new to this field I really need help.
    Thanks for any response.

    i want to make the second window closed on click of button on second window. But i m not getting the solution.Put following in the button action listener:
    secondWindow.dispose();
    //OR
    secondWindow.setVisible(false);Thanks!

  • User exit triggered after clicking on PGI button in vl02n

    What is the user exit which gets triggered after clicking PGI booton in vl02n.
    i used 'MV50AFZ1' which interrupts the process of creating material document.
    so pls tell me any User exit which can be used before the process of creating material doc gets started

    Hey,
    Have you tried with this?
    MV45AFZZ
    MV45AIZZ
    MV45AOZZ
    MV45ATZZ
    or...
    VMDE0004
    VMDE0003
    VMDE0002
    VMDE0001
    V53W0001
    V53C0002
    V53C0001
    V50S0001
    V50R0004
    V50R0002
    V50R0001
    V50Q0001
    V50PSTAT
    V02V0004
    V02V0003
    V02V0002
    V02V0001
    Not sure if possible...buy maybe
    Bye,

Maybe you are looking for

  • Problems with Roxio Toast 7 after installing Safari 4.0.4

    After completing the installation, several programs no longer work. Among them, VLC was corrected by upgrading to the latest version, but my Roxio Toast 7 will no longer work at all. According to the crash log provided by Toast, Safari was the culpri

  • How to replace sapdba with brtools after upgrade database to 10.2

    All,     I have update our database to oracle 10.2,my brtools version is 7.0 now , but can't run analyze table and dbcheck in db13, seems to still use SQLDBA when run analyze table and dbcheck. please refer to the below informations. Detail log:     

  • Raw Read Error Rate, Errors occurred while reading raw data from a disk

    hi when I turn my pavilion dv6 2170ee computer on screen shows below error. system diognostics (F2) does not any work and when my windows7 comming up this error was shown. I install Hard Disk Sentinel software and this program shows below: Failure Pr

  • Problem with create universe on Business Objects XI 3.1 base on SAP Query

    Hello, I have a problem with create universe on Business Objects XI 3.1 base on SAP Query. The problem is hierarchy. Massage on Busines Objects is :    OWBS_ELEMT__ISTKOSZT(cube ICPC01/BEX_ICOC01):Exception condition  "HIERARCHY NOT FOUND" raised.(WI

  • HT1918 credit card info

    I cant use my imessage and my apple account is asking to add my number but i cant save it without giving it my security code on the back of my credit card but i dont have my credit card at the moment so im wondering if apple has a way of looking at m