How can I get one Submit button to perform three actions?

I have a 2-page form. One page is completed by an HR person, entering fields that describe a new role, new pay, new hours or a new location for an existing employee. The second page automatically repeats the name, location and job role fields, but also completes the IT requirements linked to the job role (such as whether or not the role needs access to a particular piece of software or not).
The users of the form will have varying degress of IT capability. I wan to enable them to press a single Submit button that does three things: first, print the first page of a two-page form AND e-mail the same page to one e-mail address. Second: e-mail the second page only to a DIFFERENT e-mail address.
I am not a Javascript expert - or even a beginner. Can anyone help? I need to get this ready for Tuesday! Thanks in advance

You will need two buttons on your form to be able to do this.
One is the actual submit button (this will interact with th email system and do the submit). Note that you cannot write programs on a submit button. You will need to make this button invisible to the user. The second button will be a regular button which you can write programs on. Use teh click event of that button. This one will have logic to accomplish the things that you want ...here is some pseudo code to do this:
use print command and one of the parms indicates which pages to print.
Set up the submit button to hold the email address of the person recieving it.
Programmatically click the hidden submit button.
Note that the user will recieve a dialog from the mail client to OK before teh form will be sent.
Set up the submit button to change the email address
Programmatically click the submit button again
User will recieve another dialog to OK the email submission
Also you cannot email part of the form it will have to be the whole form. You coudl get a little more sophisticated and hide parts of the form but the whole form will be sent with the emails. This will need more programming on your part.
Paul

Similar Messages

  • How can you get your submit buttons to be a single click instead of the default double click?  (The

    How can you get your submit buttons on the quiz template to be a single click instead of the default double click?  (The option to choose double click or not is not showing in properties for this).

    Hmmm... Submit button doesn't need a double click at all. Maybe you are talking about the two-step process? When you click on Submit, the feedback appears with the message to click anywhere or press Y. Is that what you are talking about? If you are talking about a real double-click, something must be wrong in your file. And which version are you using?
    http://blog.lilybiri.com/question-question-slides-in-captivate
    Lilybiri

  • How can i disable a submit button and execute submit_action method on click

    Good Day,
    On my page I have a submit button that execute the submit_action method of the page backing bean that submit data captured on the page into a database and activate another class that send mail at the same time on a click of the submit button,the mail process takes a while before returning back to the page.I was able to disable the submit button to prevent the user from keep click while the process is running but the issue is on clicking the submit button it only disable the submit button without executing the submit_action method of the page backing bean.How can i disable the submit button and execute submit_method of the backing bean at the same time.
    Thanks in advance.

    I tried this out on one of my pages to see if it works.
    First, I added the following JavaScript to my submit button's onClick event:
    this.disabled=true; return true;When I clicked the submit button, it was disabled but the form was not submitted.
    I deleted the JavaScript from the onClick event and added the following JavaScript to the form's onSubmit event:
    var button = document.getElementById("form1:submitButton"); button.disabled=true; return true;When I click the submit button, it was disabled and the form was submitted but the button's action method was not called.
    The next thing I tried was to change the onSubmit event code:
    var button = document.getElementById("form1:submitButton"); setTimeout("button.disabled=true", 500); return true;This seemed to work. The difference was that I added a 1/2 second delay before disabling the button.
    See if that works for you. If not then I'm fresh out of ideas.

  • HT5625 I'm trying to create a new Apple ID but when I was putting on my information, there's a box asking for an ITunes gift code. What's this and how can I get one?

    I'm trying to create a new Apple ID but when I was putting on my information, there's a box asking for an ITunes gift code. What's this and how can I get one?

    You're not obligated to insert a gift code. But you can purchase gift codes on the Apple online store (gift cards or certificates) or Apple Retail store
    Gift codes are pre paid cards so you can use credit on the iTunes Store to purchase content
    To create apple ID without payment method:
    http://support.apple.com/kb/HT2534?viewlocale=pt_PT

  • Answer: to How can I get the reset button to work.

    How can I get the reset button to work?: Answer
    Thanks to everyone who helped on this. You are awesome. Especially Ned!!  Posted here because I was unable to add more to the existing post.
    Here is the question:
    When you click on the reset button, this error below comes up. If you can't find the button it is the navy colored rectangular thing in the lower left corner of page.
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
        at flash.display::DisplayObjectContainer/removeChild()
        at AddATree2/onReset()
    When you click on the reset button, this error below comes up. If you can't find the button it is the navy colored rectangular thing in the lower left corner of page.
      Here is the answer:
    //when you click the reset button everything is removed from the stage
        //except the star, baclground, and reset button (trees and greeting REMOVED)
        public function onClear(Event:MouseEvent):void
                if (tree3) removeChild(tree3);
                if (tree2) removeChild(tree2);
                if (webText) removeChild(webText);
                if (tree) removeChild(tree);
                clickCount = 0;

    This is the answer to what to put in the onclear function.

  • If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

    If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

    If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

  • How can i put a submit button in a survey and it send to my email

    how can i put a submit button in a survey and it send to my email?

    Hi williamm89908146,
    You need to open the form in which you want to put the submit button,
    then you have to choose 'Add new field' under Tasks pane on the right Hand side of the window.
    Choose 'Ok' Button
    Place the button at desired Location
    Change the field name to 'Submit'
    Click on 'All Properties' (Button Properties window Will open up)
    Click on Actions Tab and then on 'Select Action:'
    Choose 'Open a web Link' from the Drop Down Menu and then Click 'Add'
    another window will appear in which you have to type this:    mailto:[your email address], eg: mailto:[email protected] later click close
    Click Close Form editing on the right hand side of the window
    Clicking on the Button would open up your default email client and your address would appear in 'To' field.
    Please feel free if you face any challenges in following through these steps.
    Regards,
    Rahul

  • In Yosemite, How can I get the "READER" button back in the Tool Bar at the top of the screen

    In OS X Yosemite,
    How can I get the "READER" button back in the Tool Bar for Safari at the top of the screen ?
    Thanks,

    I don't see the "READER button".
    I see "READ LATER" but not the "READER" function.
    Maybe I'm doing it wrong.
    Please continue to HELP ME with this question.
    In the previous version of Safari, there was a "READER Button" on the right side of the tool bar. This brings up the selected web page in a READER mode all by itself, without the ads, etc.
    Are you saying that I can get this function by clicking on the Left side of the Address bar?
    When I do that, I get lots of icons, but NOT the READER button.
    Thanks

  • How can I get one value from local machine registry

    how can I get one value from local machine registry, I would like read one value of regitry. I have windows NT workstation. I need it to find the full path of iexplore.exe, this value is in 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE'
    Thanks.

    You can use the D2KWUTIL.pll library to read/write to the registry. You have to install the forms examples to get the library.
    The library d2kwut32.dll must also be installed at the clients.

  • How can I get my home button to work again

    How can I get my home button to work again

    Well, if your Home button is broken, you won't be able to reset your phone, and if the Sleep/Wake button won't turn your phone on, it's a trip to the Apple store.

  • My iphone  3gs does not have a wifi button how can i get one

    as my tittle states i dont have a wifi button can i get one ?

    First things first: you bought this iPhone second-hand from someone you know. That person must have used his iTunes account to activate the phone. Have you tried connecting your iPhone to your computer (Mac or PC, doesn't matter) via USB and have it recognized by iTunes on your computer? If not, you'll have to activate the iPhone first. iTunes will do that for you, provided the former user has notified Apple he has sold his iPhone to you. Then, there's the question of your mobile phone provider: iPhones are network-locked. You can't buy an iPhone from someone who's, say, an Orange customer, then use it on another network than Orange's (in the US, of course, that point is moot). Only way to unlock your phone is to jailbreak it, but it's risky, and frankly, I don't think you'll find a lot of info on this forum on the subject... First off, check on which operator network you friend was.

  • Can we have one submit button for mutliple report regions querying same tbl

    Hello,
    I have a normal multiple report regions in a page with some editable in those regions, these report regions are querying the same table. Now, Is it possible to have one submit button for all the report regions to update the underlying table data?
    Can anyone please help me out with this one.
    thanks,
    Orton

    First you'll almost certainly need to roll your own - the built-in stuff is fairly basic and more than likely won't help.
    It sounds like your process flow should be something like:
    1) Person clicks button.
    2) You do a select for update in the process to get the loan id and put it in the person's queue. At this point you may want to flag that column as having been assigned so it can't be assigned again.
    3) You then forward them to the form to enter data. Personally I would create my own items and processses and forgo the built-in form stuff but you may be able to use the Automated Row Fetch. If you do your own, you just reference the objects like:
    insert into table
    values(:P1_1, :P1_2, :P1_3)Edit - Another way would be to use a regular form and insert Stop/Start Tables - so it can look like a different section, but it really is just a label. Thats another option.

  • How can I get one song out of an entire concert w/o losing the entire show

    I have edited an entire concert, 2 hours, and have uploaded it to Youtube but I also want to get one song out that to give to the band for promotional use. How can I get that one song out of the entire show and still keep the entire show intact?
    If I cut the song out and delete the rest of the show, I would have the song that i want but then how do I get back to having the entire show back on the timeline as I want to make it into a BluRay too.
    Thanks

    Thanks Steve.. just so i am understanding correctly, I would save as and save a copy of the entire concert and then i could cut out all but the song i want and edit that song and when it is done i can save it so that later on i can re-render it in High Rez or for YouTube or whatever? and my original concert is still accessible for re-editing or re-rendering?
    Thanks again

  • How can I get my radio buttons on one line?

    I have tried to put two radio buttons in one text cell in a table, but I can´t get them side by side. They stack on top on each other, in a vertical list, no matter what I do.
    Sorry for the stupid qustion, but this is my first attempt in LiveCycle Designer.

    Thanks for your time. I found the soloution. I changed the flow direction in the suborm from "top to bottom" to "Western text"

  • Can't get the Submit button to work on Acrobat X

    I was having this problem on Acrobat 9 and so I bit the bullet and upgraded, hoping the problem would go away, but it did not.
    I have a simple form for an event which recipients will fill out and submit, emailing the entirePDF to others (not to me)
    I've done these forms a zillion times, no problemo, but this is the first time I've tried since upgrading from Entourage email to Outlook, and I have a sneaking suspicion the problem lies there somehow.
    Can install the button, all fine, but when I click it to test, I get this message:
    "An error occured while trying to create a mail document. Acrobat is unable to complete your request."
    Anybody know what I can do to fix this?
    signed,
    Desperate

    I gave up on the 'Submit' button long ago, as have others, I suspect.
    It fails in about half of the cases.
    Now I place a note at the top of the form instructing users how to manually attach the form to an email in case the button doesn't work – it's ridiculous. Thinking about it, it would be more clean-cut to get rid of the button alltogether.
    I also keep getting requests to provide forms as Word documents instead. Apparently people are way more comfortable with Word than willing to deal with idiosyncrasies in PDFs.

Maybe you are looking for