How do I specify different emails for a form to send to based on different selections?

How do I specify different emails for a form to send to based on different selections?
Creating a form that can be sent to an email address is simple enoug but my problem I can't figure out.  There is a drop down menu on the form and based on what the user selects the form will be sent to 1 of 3 groups of email addresses.  How can I specify which group of email addresses belong to a particular dropdown menu selection?

You can populate the drop down with a dataprovider that has the dropdown field and the emailgroup field.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  <mx:Script>
    <![CDATA[
      import mx.events.FlexEvent;
      import mx.collections.ArrayCollection;
      [Bindable] private var dataAC:ArrayCollection = new ArrayCollection([
        {label: "one", email: "[email protected]"},
        {label: "two", email: "[email protected]"},
        {label: "three", email: "[email protected]"},
      private function changeFunc(evt:FlexEvent):void{
        txt.text = evt.currentTarget.selectedItem.email;
    ]]>
  </mx:Script>
  <mx:ComboBox id="cmbx" dataProvider="{dataAC}" valueCommit="changeFunc(event)"
    labelField="label" creationComplete="cmbx.selectedIndex=0"/>
  <mx:Text id="txt"/>
</mx:Application>
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com
Flex / AIR Development, Training, and Support Services

Similar Messages

  • How can i make a email for my printer

    how can i make a email for my printer to send the things to the email and get it printed if i was out of the house my printer model is 3525

    Hi alhashmi_sy,
    Welcome to the HP Support Forums. I see that you would like to learn how to setup the ePrint feature of your Deskjet Ink Advantage 3525 printer.
    The first step is to connect your printer to your wireless network. Please follow the steps in the Installing the Printer Software for a Wireless Network Connection document for your operating system. If you have already setup your printer with a USB cable, each operating system section has the steps to switch from the USB connection to a wireless connection.
    After connecting the printer to your wireless network please follow the steps for Getting the Printer Claim Code. Once you have the web services information sheet with your claim code please Set Up a Custom Email Address for ePrint.
    You should now have a customized ePrint email address for your printer. If you run into any issues please let me know at what step things went awry and the contents of any error messages. Please also let me know what operating system you are using on your computer (whatsmyos.com). Thank you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • How can we specify the Mailbox for Notes?

    In Mail.app, how can we specify the Mailbox for Notes (where the new notes will be resided)? It is now 'On My Mac'. I wish to change to my IMAP Mailbox so it sync with my iPhone by just checking email (not by syncing on iTunes).
    Thanks in advance.
    Message was edited by: Ekapon

    You could use the DecimalFormat or NumberFormat to do the job.
    double number 1234.567;
    DecimalForamt df = new DecimalFormat("###.##");
    String s = df.format(number);or
    double number 1234.567;
    NumberFormat nf = NumberFormat.getNumberInstance();
    nf.setMaximumFractionDigits(2);
    /* if needed.
       nf.setMaximumIntegerDigits(value);
       nf.setMinimumFractionDigits(value);
       nf.setMinimumIntegerDigits(value); */
    String s = nf.format(number);I didn't test the codes but they should work. For more information, please consult the documentations.

  • How do I add an email for facetime

    I want to give my daughters a different email for her iPod so she can FaceTime and it doesn't come up on my phone. So I set up an email for her and it won't let validate it.  So my question is do I have to make a iTunes account for it to work and if so. How do I make it so that the library can be shared.  Please help I getting very frustrated with it.

    Using FaceTime
    http://support.apple.com/kb/ht4319
    http://www.apple.com/mac/facetime/
    Troubleshooting FaceTime
    http://support.apple.com/kb/TS3367

  • How can I specify SMTP Email Server userID and password when using Email VIs?

    How can I specify SMTP Email Server userID and password when using Email VIs included in Internet Toolkit?

    Hi,
    A similar question was posted on Discussion Forums soem time back. Please see the link below.
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000C7B00000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    You would find the last post in the above thread quite useful where it has a link to OpenG code. I am also copying that link for your reference.
    http://www.openg.org/tiki/tiki-index.php?page=OpenG+Internet+Connectivity+Tools
    Please feel free to respond to this post with any questions/comments you may have.
    Regards,
    Ankita A.
    National Instruments

  • HT1349 how can I change an email for authorization, the email address we used years back, is no longer a valid email address

    how can I change an email for authorization, the email address we used years back, is no longer a valid email address

    SfromW wrote: ... how can I change an email for authorization, the email address we used years back, is no longer a valid email address
    How to change account here: http://support.apple.com/kb/PH1641
    If you need more help, start here: http://www.apple.com/support/itunes/
    SfromW wrote: ... we can't remember the password from the old email address (for authorization)...
    Help Retrieving and changing passwords here: http://support.apple.com/kb/HT1911
    If you need more help, from iTunes for Windows, click  iTunes > iTunes Store > Support
    SfromW wrote: ... apple should make it easier to transfer authorization authority....I would think anyways.
    You might want to rethink your thoughts about making transferring authority easier.  Making it too easy would certainly degrade your account's security.  If you still believe it should be easier, you can send feedback directly to Apple via http://www.apple.com/feedback/itunesapp.html
    You will not get a response, but you can be certain that the responsible Apple people will see your input for consideration in FaceTime product development.
    As a new user, please understand that you are NOT directly addressing Apple here.  For more info about Apple discussions, start here: http://discussions.apple.com/static/apple/tutorial/etiquette.html 
    Message was edited by: EZ Jim
    Mac OSX 10.7.4

  • How do I schedule an email for future delivery on Mac mail client?

    How do I schedule an email for delivery at a future date/time on my Mac mail client?

    Hello DeeDubb11,
    Unfortunately, you cannot do that with the officially Mac Mail client.
    Best regards.

  • How can I change the email for the Apple ID

    How can I change my email for my Apple ID

    Hello there, Lelizabeth2014.
    The following Knowledge Base article goes over the steps for doing just that:
    Apple ID: Changing your Apple ID
    http://support.apple.com/kb/ht5621
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • I could not connect my Facebook account to my Spotify account I use different email for both account

    please help me connect my Facebook account to my Spotify account I use different email for both accounts.

    Try THIS Hope it works, if it does, leave me a kudo or a solution :)

  • HT5312 How can I get the email for a rescue I'd to change my security questions

    How can I get the email for a rescue I'd to change my security questions

    You can't add or change a rescue email address (which is not the same thing as an alternate email address) until you can answer your questions - if you don't already have one then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551
    When you've got them reset you will then be able to add a rescue email address for potential future use

  • How can setup the outgoing email for ipad2?

    How can setup the outgoing email for ipad2?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
     Cheers, Tom

  • How do i import outlook email addresses to iphone and send as a SMS text messages

    How do i import outlook email addresses to iphone and send as a SMS text messages?

    You can send a message through an email gateway so that it appears as a text on someone's phone. However, it's not their regular address. For example, for a Verizon customer, it would be [email protected] Perhaps that's what you're thinking of?

  • CST% should calculated two different rate for C Form /  Without C Form

    Hi,
    How we can assign to one CST% condition against two different rates for C Form / Without C Form for same Plant/Vendor/Material.
    My scenario is, we have purchased the Material for one plant from Vendor, but Vendor has given the material against C Form or Without C Form not fixed.
    We have used to Plant/Material/Vendor Key combination for updating CST (JVCS) 2% condition through FV11. And created two PO for C Form 2% & second 5% Without C Form but it is showing 2% in both PO as per maintained in condition.
    When we have received the material against without C Form 5%, changed in CST (JVCS) condition 5% and do the MIGO and same think do for against C Form.
    How to resolve this type problem without changing?
    But it is possible in SD their maintaining Price Group; same is it possible in MM.
    Devendra

    Hi,
    1 .How we can assign to one CST% condition against two different rates for C Form / Without C Form for same Plant/Vendor/Material.
    As suggested by the Pankaj you need to create 2 tax code i.e. one with C form & other as Without C form having appropriate Percentage maintained in the condition record ( FV11 )
    My scenario is, we have purchased the Material for one plant from Vendor, but Vendor has given the material against C Form or Without C Form not fixed.
    We have used to Plant/Material/Vendor Key combination for updating CST (JVCS) 2% condition through FV11. And created two PO for C Form 2% & second 5% Without C Form but it is showing 2% in both PO as per maintained in condition.
    As you may have maintained single tax code with the 2% condition record so same % flows in both PO , Use 2 sperate tax code it will resolve the issue.
    Regards
    Mascot.

  • How do I attatch several emails to one I'm sending out?

    How do I attach several email to one I'm sending out?

    Firefox doesn't do email, it's a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • I have 3 different email account, I would like to see them in different icons, it`s that possible.

    I have 3 different email account, I would like to see them in different icons on the screen, it`s that possible.?

    No.

Maybe you are looking for

  • Editing metadata in bridge CC

    I've used bridge to edit metadata of all my files as they are downloaded using CS4, now with CC I am having trouble. When I edit metadata and try to save it I get a message that Bridge had trouble writing to file. PS can write to file, and bridge can

  • Bill of Material Explode

    Hi Experts, If I want to calculate the Component scrap in percent at all the levels of BOM What is the way to proceed for it. Thanks in Advance. Regards, IFF

  • [Solved] Wallpapers disappear after running nemo

    Hi All, I did search for my issue in the forums but found nothing (maybe the keyword "wallpaper" I used is too broad). I'm using gnome 3.10 and nemo 2.0.0. I create a file like adwaita-timed.xml to display the wallpapers: <background> <starttime> <ye

  • Flash effect in Toggle Buttons

    Hi all: I try to make an animated effect as in the ToggleButtons event "onMouseEntered" My idea is that the shadow of the buttons make a blink effect. While the pointer is over the button, I want the shadow becomes large and then small, then big and

  • ServletException: Wrapper cannot find servlet ...

    Hi, I'm trying out a (/the first) piece of code I downloaded from a website of a book (http://books.brainysoftware.com/index.php?show=struts) I got the following exception: javax.servlet.ServletException: Wrapper cannot find servlet class app01a.Cont