Several drop down menus E-mail to multiple recipients

Hello

I try to get 3 different menus to determine the multiple recipients of a form sent. I can't seem to get them all to work at once,... .only one or the other. It is the click event script that I use on the submit button. Could someone help me identify what's wrong with my syntax (particularly vEmail portions)?

// First check if there are null values, then construct email using script
var vEmail =  "";
var vSubject = ""; 
var vBody = "Attached to this email is a Field Service Issue - Parts Order Form."; 
var vName = ""; 
var vCC = "[email protected]"; 
var vFormat = "PDF"; 
var errorMessage = "You have not provided enough information:";  

{
     vSubject = "Field Service Issue - Parts Order Form"; 
}

// Check email address field and build error message
if (Page1.SendFormTo.rawValue == null || Page1.RSM.rawValue == null || Page1.CST.rawValue == null)
{
     errorMessage = errorMessage + "\n - Please select who you want to send this form to, including RSM & CST."; 
}
else
{
     vEmail = Page1.SendFormTo.rawValue, Page1.RSM.rawValue, Page1.CST.rawValue;
}
{
     vCC = "[email protected]"; 
}

// If fields required for script are null, warn user and do not initiate email
if (Page1.SendFormTo.rawValue == null)
{
     xfa.host.messageBox(errorMessage, "Sending an email", 0, 0); // Send out a custom error message if any of these fields are null
}
else
{
     // Everything is OK, send email
     event.target.submitForm({cURL:"mailto: "+ vEmail +"?subject=" + vSubject +"&body=" + vBody + "&cc=" + vCC,cSubmitAs:vFormat,cCharset:"utf-8"});
}

Kind regards

ZeroZone

I guess the problem is with your concatination... I see a problem with the following line of code...

vEmail

= Page1.SendFormTo.rawValue, Page1.RSM.rawValue, Page1.CST.rawValue;

I would like to use next... to concatinate all email addresses...

vEmail

= Page1.SendFormTo.rawValue + ',' + Page1.RSM.rawValue + ', ' + Page1.CST.rawValue;

Tags: Adobe LiveCycle

Similar Questions

  • Button check that several drop down menus are not the default submit

    Hi all

    I create a form that has several drop down menus and add a submit button that checks on Mouseup executes the following code. I need it so that they are not yet on the default value and they chose something different otherwise she will not submit.

    Instance field 'UserDepartment' has the value default of ' Select Department: "I added the checked for 3 of the drop down menus far, but no matter what I choose always travels and don't pop up with an alert, even if the default is selected.

    What I am doing wrong? I have read several other issues, but for me (no experience), it seems fine.

    var v = this.getField("UserDepartment").value;
    var v2 = this.getField("UserRole").value;
    var v3 = this.getField("ManagerRole").value;
    if (v == "Select Department:")
    {
        app.alert("You must select a valid department for the new starter before you can submit this form.");
    }
    else if (v2 == "Select Job Role:")
    {
        app.alert("You must select a valid department for the new starter before you can submit this form.");
    }
    else if (v3 == "Select Job Role:")
    {
        app.alert("You must select a valid department for the manager before you can submit this form.");
    }
    else
    {
        submitForm({cURL: "mailto:[email protected]", cSubmitAs: "PDF"});
    }
    
    
    
    

    To make it replace the first two lines of your code with this:

    var f = this.getField ("UserDepartment");

    If (f.valueAsString is f.defaultValue)

    If it still does not work, you will need to share the file with us for more

    Help.

    Monday, March 14, 2016 at 15:26, ryand54430413 [email protected]>

  • Adding a voice to several drop down menus with a checkbox.

    Hello!

    Open a new topic because it's a different matter.

    I want to basically do:

    I have three different drop-down menus and check boxes.

    What I want to achieve, is that when the user check a specific box, this specific element is added to all the drop down menus, when the user clear this check box, this specific element is removed from all the drop down menus.

    Thank you for the answers!

    To add an item, you can either use the insertItemAt and setItems method in situ, remove an item, you can use the deleteItemAt or setItems.

  • Convert Word doc with the drop-down menus in PDF w/menus

    I have a Word document with several drop-down menus. This document requires conversion to PDF and keep all the drop down menus. I have Acrobat X standard and you need to know how to convert the Word document.

    Of course, you can convert the Word file PDF but the drop downs should be recreated using form tools in Acrobat. You can use the drop-down list form field to re-create the menus.

  • Menu bar 'View' drop-down menus do not work except option 'character encoding '.

    V33.0.1 FF
    For past several updates I asked problems with drop-down menus. 'See' on the Menu bar is an exzmple. Pnly 'Character encoding' option works correctly. Similar problem occurs in many other places including LastPass extension which I use a lot.

    An empty menu appears right without entries. But the problem is not consistent.

    Heals the problem to the menu bar of FF and other questions of FF from FF in safe mode. But I can't find which plugin or extension is causing the problem.

    All ideas

    Hello makatikid, try Disabling graphics hardware acceleration and check again.

    You will have to perhaps restart Firefox for it to take effect, so save any work first (e.g. you compose mail, documents online that you are editing, etc.).

    Then perform the following steps:

    1. Open the Firefox Options window as follows:

      • Click the menu button

        and select Options

    2. In the Options of Firefox window, click the Advanced tab, and then select general.
    3. You will find in the list of parameters, the checkbox use hardware acceleration when available . Clear this check box.
    4. Now restart Firefox and see if the problems persist.

    In addition, please check the updates for your graphics driver by following the steps in the following knowledge base articles:

    In firefox safe mode, hardware acceleration is disable.

    Thank you.

  • After that update to the drop-down menus v24/25 arrested will appear incorrectly, I reported it 3 times, when will fix it you?

    I use a completely updated version of Windows 64 bit on a new ASUS laptop. I've updated to version 24 [IIRC 12] FF and browse the drop-down menus are not displayed correctly. They also testify anyway altered, too big or too small. When I run in safe mode, they work very well. I disabled all extensions and plugins and the problem persists. I have reset FF and the problem persists. It is usually a invalid parameter is passed to a routine and a mistake that should not be happening on not one but 2 versions [24 and 25].

    Safe mode also disables the use of Firefox hardware acceleration of graphics. This method works around the graphics card driver incompatibilities. You should try it in normal mode and see if it helps.

    You will need to restart Firefox for it to take effect, so save any work first (e.g. you compose mail, documents online that you are editing, etc.).

    the button Firefox orange (or the Tools menu) > Options > advanced

    In the mini ' General' tab, uncheck the box for "use hardware acceleration when available.

    If you restart Firefox, is the problem solved (or at least enhanced)?

  • Update the drop-down menus and jQuery sortable collide with the 16.0.2

    The drop-down menus that are contained in a table sortable jquery act as if they are disabled. By clicking on them, doesn't matter. I can tab in the menu drop down and control it with the arrow keys, but the mouse does nothing. The menus outside of the table still work very well. This problem only occurs in Firefox 16.0.2 on several computers, all equipped with Windows 7. The problem does not occur in IE9, Chrome or Safari. In addition, the problem does not occur in Firefox 15, but it occurs in Firefox 17 Beta. I did not see anything addressing this specific issue, so I guess this isn't a known issue.

    The problem has been resolved.

  • The drop down menus work intermittently; all add-ons are disabled.

    When I run the cursor over a menu item; File, Edit, history, etc., the drop down menu does not decrease. If I click on the menus, drop down menus will appear and then disappear. If I continue to do this for several seconds, the menu will be displayed when selected. I'm having the same problem with this help screen when I do a right-click with the mouse.

    Thanks - Mike F.

    In Firefox 4 and later Safe mode disables extensions and disables hardware acceleration.

    Try turning off hardware acceleration.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    If disable hardware acceleration works then check if there is an update available for your graphics display driver.

  • Windows 7 menu drop down menus invisible

    Just upgrade from Vista home premium to version W7 Home premium and the drop down menus are not visible.  I can see an overview of the menus but no content or hotspots click.  This applies to the start menu (close on the menu drop-down) and the Outlook menus.

    Windows Update has nothing to with the upgrade of Windows. Please repost your question in the support forum: http://social.answers.microsoft.com/Forums/en-US/w7install/threads ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Populate drop-down list with the results of several drop-down lists

    Hi, I am creating a form where the results of two drop-down lists then would fill another drop-down list. I'm not new to javascript, but I'm new to using it in Acrobat, so while I found some answers to this: Drop-down list fill in multiple fields of text. I don't know where to implement this, if it is still the right thing, I'm looking for pipes for

    Oh and I use Acrobat Pro DC. Any help would be much appreciated!

    OK, you can create a function at the level of the document that is called in the Validate event of each of the two first drop down menus, something like:

    Function in JavaScript to the document level

    function updateDropdown() {}

    Get references to the drop-down menus of entry

    var F1 = getField ("DropdownList1");

    var F2 = getField ("DropdownList2");

    Refer to the output drop-down list

    F3 var = getField ("DropdownList3");

    Get the values of input field, as strings

    var s1 = event.target = f1? Event.value: f1.valueAsString;

    var s2 = event.target = f2? Event.value: f2.valueAsString;

    Fill the drop-down list of output with the elements, or deselect it if either input dropdown is 'empty' (single topic area)

    If (s1 = "" |) s2 === " ") {

    F3.clearItems ();

    } else {}

    F3.setItems (["", s1, s2]);

    }

    }

    In the two first downs Validate event, call this function like this:

    updateDropdown();

    You can of course name the function you want. More information about the properties and the methods used in the code are available in the Acrobat JavaScript documentation.

  • How to add radio buttons and drop-down menus to forms of the muse

    I want to put a contact form on my site that I am building in muse of adobe but it leaves me not to add drop-down menus or boxes option in my forms, so would like to know how I can get the widget of forms to make me add these fields, I would like to me also can have different fields displayed on a form based on the value selected in a drop-down list and also to send data submitted to an e-mail address which is determined by the value of field drop-down list.

    can someone help me to implement these things?

    Alternatively, you can go with Andrew widget:

    https://creative.Adobe.com/addons/products/3124#.VEO37Mlsiks

    Here's the demo:

    https://widgets.Mu/se/FormsPlus/demo/

    Thank you

    Sanjit

  • DW-MX-04 in the drop-down menus do not work.

    I use Dreamweaver MX 2004 (have been for several years, so I know my way around it).  I want to create the menu drop-down or menu ruffles to consolidate the links on the page into categories in order to reduce the number of tabs of link I have on each page.  I was able to create the menu, I needed (using the: Tag Chooser\ Behaviors\ the menu Pop-U), but when I saw the pages in Internet Explorer, the text shows that on the text of mouseover (not on top) despite the text color defined as black in the Menu window.  But it's even worse.  When I downloaded the page to try it, in the drop-down menus appear not at all when I hover over the main buttons and I get javascript errors.

    Can someone give me assistance both on how to solve this problem?

    I checked the issue of text color by using the code editor pane view, and it matches the way I have it set on the Shortcut Menu.  But that's the least of my worries, if I can't get to work at all when the pages are turned.

    Thank you... JEB

    Use the CSS Menus.  Menus MM bearing are horrible.

    Pop-up menu Magic2 by PVII (purchase of DW extension)

    http://www.Projectseven.com/products/menusystems/PMM2/index.htm

    jQuery Superfish

    http://users.TPG.com.au/j_birch/plugins/SUPERFISH/

    CSS3 Dropdown menu

    http://www.red-team-design.com/CSS3-dropdown-menu

    Nancy O.

  • «"You want to enlarge the fonts in the drop-down menus, especially for" view all bookmarksbookmarks»

    The fonts are really small in the bookmark drop down menus.

    There is a Firefox extension that allows you to enlarge the fonts in the menu and toolbar. You could give this a try and see if it works for bookmarks, too:

    https://addons.Mozilla.org/firefox/addon/theme-font-size-changer/

    Its button usually appears towards the end of the main toolbar once you install it. Once you have finished defining the desired font size, you can take the bar button using the personalization feature. See: Customize Firefox commands, buttons, and toolbars.

  • Drop-down menus does not open. Click right box will not appear.

    Hello!

    Yesterday, I was working on the Wix site. I noticed that when I tried to do a right click to copy and paste text box never showed up. I realized then, on other sites, in the drop down menus would not open (as the ones where you select your State, etc.). I can't turn on the bar menu at the top of Firefox with the ALT key, but when I click Tools or anything else, the box does not fall down. Same thing for my bookmarks and menu of frequently used buttons. My right click works fine when I'm not online. I really like to use Firefox and hope that there is a better solution than to switch to a different browser. I use Firefox at work and it's there.

    Please let me know if you need more information.

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that disables certain parameters, disables most Add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • In Firefox 29,0 and above, click on the menu button

      click Help

      then select restart with disabled modules.

    • In previous versions of Firefox, click on the Firefox button in the upper left of the Firefox window and click help (or click on help in the Menu bar, if you do not have a Firefox button) and click on restart with disabled modules.

    If Firefox is not running, you can start Firefox in Mode safe mode as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. Please follow the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

  • Just upgraded to 32.0.1 and drop down menus were shifted to the left. How can I fix this?

    I just upgraded to 32.0.1 for Mac, and from the drop down menus were shifted to the left. I tried to reset. I tried to reset Firefox and the problem was not resolved.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe

    You can check for problems caused by plugins and all the plugins to "Ask to activate" on the page "Firefox/tools > Modules > Plugins" (plugins are not affected by the Mode of Firefox safe)

Maybe you are looking for

  • Laptop will not stop or sleep

    Hello I recently bought an Acer E5-571-54YJ. The laptop works very well and fits my needs for the school. Only problem I have with it is that it will not stop or go into sleepmode. When I stopped it after a few seconds when the screen goes black I me

  • Without drop-down menus

    My computer crashed. I reinstalled it, but now all my in drop-down menus (in all programs) do not display unless I scroll over them. I can see the dim outline of a border that should contain the menu...

  • I can't change language by focus serious symbol (~) accurately.

    Hello, I would like to ask for some advice to you because I can't focus language serious symbol (~) accurately. Suppose I have three languages to change: thai, English, Chinese, when I push serious focus symbol, language would change between only two

  • Is allowed to work on the computer while the bulk is scanning?

    Is allowed to work on the computer while the bulk is scanning? It slow it down or get him to Miss things because I continue to surf the net?

  • Catalog file Vista 64 missing file 'GlobalCatalog.wbcat'

    I need to fix my Mediaid.bin file.  I know how t o to fix but miss me 'GlobalCatalog.wbcat' in the file catalog I need catalog with this file inside the folder.  Also at least BackuoSet "YYYYMMDD" "xxxxxx" folder can be recreated I need too! I tried