Use this.submitForm () to submit e-mail messages based on the input from the user

I am using the function this.submitForm () in order to allow users to send the form instead of the integrated due to various e-mails depends on the user of a text field input.

Under work - except that I want the pdf file to send instead of fdf data. I'm trying to make it work using the cSubmitAs: input parameter, but can't seem to get the right syntax...

if(manufacturer.value == "Manufacturer A") {
 this.submitForm(
  "mailto:[email protected];[email protected]?&[email protected];[email protected]&subject=New Service Request Submittal"
  );
}
else {
 this.submitForm(
  "mailto:[email protected];[email protected]?subject=New Service Request Submittal"
  );
}

After doing a little research, I came with:

var manufacturer = this.getField("manufacturer");
var nEmail = "mailto:[email protected];[email protected]?&[email protected];[email protected]&subject=New Service Request Submittal";
var allEmail = "mailto:[email protected];[email protected]?subject=New Service Request Submittal";
if(manufacturer.value == "Manufacturer A") {
 this.submitForm({nEmail, cSubmitAs: "PDF"});
}
else {
 this.submitForm({allEmail, cSubmitAs: "PDF"});
}

But I seem to be getting errors JavaScript no matter what I try...

When you use "{" a "}" in a method indicates you specify the name of the parameter and then the value, and not only the value of positional parameter. If the statements of 'this.submitForm' are the following:

this.submitForm ({cTo: nEmail, cSubmitAs: 'PDF'});

and

this.submitForm ({cTo:allEmail, cSubmitAs: 'PDF'});

Tags: Acrobat

Similar Questions

  • Is it possible to change the URL of the submit button link is based on the user input?

    I have a separate html page that does this with a php script, but I had help to create this php file which is just a form that allows users to enter a password that I give them who will then simply link to an external html page.  Since I do not know php, I think a possible work around could be to have a text input box that would allow a user to enter (passwordA) then click on submit to load (pageX.hmtl) or they could enter (passwordB) and submit would charge (pageY.html).

    If anyone knows how I can link my new flash with my .php file project, it would be great, or if there are AS3 code that would do this I though!

    use:

    submit_btn.addEventListener (MouseEvent.CLICK, navF);

    function navF(event:MouseEvent):void {}

    {if (passcode_txt. Text is "passwordA")}

    navigateToURL (new URLRequest ("http://www.site1.com"));

    } else {}

    navigateToURL (new URLRequest ("http://www.site2.com"));

    }

    }

  • This device cannot find enough free resources that it can use. If you want to use this device, you will need to disable one of the other devices on this system (Code 12)

    Guys, I have a problem. So, my laptop has 2 graphics cards, an integrated course of the Intel HD graphics (which works perfectly) and the other being the dedicated Nvidia graphics (Nvidia GeForce 940 m). Until 2 days ago, everything was going well and running.

    I have the application experience GeForce and it prompted me that there is a new driver update should I download. He started to install then after rebooting to complete the installation, it failed. I checked my device manager and saw a yellow exclamation under under my Nvidia graphics card (remember, my laptop has two graphics cards: Nvidia graphics card and Intel HD graphics that works correctly). I immediately checked the details, and he said:

    "This device cannot find enough free resources that it can use. (Code 12) »

    "If you want to use this device, you will need to disable one of the other devices on this system."

    This seemed very strange, because it was LITERALLY working properly before I was invited about update driver I got, so I don't know what to do - as a matter of fact, literally, I finished this game, Deadpool, with my Nvidia card that I put as the default graphics card, a few hours before , so I don't know why this happened. Any help? I'm looking for a logical answer to this, guys!

    Additional information:

    A few days before this happened, I went to my store local pc and installed an extra 4 gigs of ram on my 4 existing to make 8. Don't know if it's useful, but anyway

    If I pick up my laptop and shake it side by side, I hear a slight rattling noise, and it seems a little loose (I found this out after seeing the error message). The noise seems to come from just below the middle of my keyboard (I'm using a laptop). If for some reason, my Nvidia card is loose? Is this possible?

    I am quite technologically inclined, but not to the extent of removing components and reconstruction cell phones / pc and access the bios and what not. I can only remove/add ram.

    I want to know if its something I am able to fix it because I do not necessarily want to go running and sending my laptop places - only my pc up shop.

    Here is the location of my Nvidia card: PCI Slot 4 (PCI bus 4, device 0, function 0)

    My specs:

    Acer TravelMate p257-MG

    Windows 7 business

    Intel core i5-5200u 2.20 GHz 2.20 Ghz processor

    8.00 GB of ram

    64-bit operating system

    1 t hard drive

    940 m Intel HD graphics 5500 & Nvidia Geforce card

    Just to recap, I get the error on my Nvidia graphics card code, "this device cannot find enough free resources that it can use. (Code 12) ""If you want to use this device, you will need to disable one of the other devices on this system. »

    Thanks in advance!

    Hello

    Thank you for your response.

    I appreciate your time.

    I suggest you run ' Intel Chipset Software Installation Utility ' and check.
    Reference:
    http://www.Intel.com/content/www/us/en/support/software/Chipset-Software/Intel-chipset-software-installation-utility.html

    Please keep us updated.

    Thank you

  • I want to change the layout of my e-mail messages so that the message is on the side of the headers not below them

    I want to change the layout of my e-mail messages so that the message is on the side of the headers not below them. I just downloaded mozilla thunderbird on my new laptop computer to I can not get the layout that I'd rather go back. Help, please. Thanks June

    Maybe try Vertical page layout view in the menu bar.

    No menu bar? Press the ALT key.

  • When I attach a pdf file to an e-mail message, it displays the file in full no not as an attcahment

    Why is it when I attach PDFs to an e-mail message, they show the full document of the file not as a pdf file icon... I have attached a passport to send and it showed the page of the passport and not on the pdf icon... I don't understand why? Someone at - it help him?

    Paul

    Right-click on the attachment PDF full size and in the context menu, select display as icon.

  • When I try to open my homepage from Yahoo using Firefox I get a panel display message 'connection to the server was reset while the page is loading. Try again "#Cure please!"

    When I try to open my homepage from Yahoo using Firefox I get a panel display message 'connection to the server was reset while the page is loading. Try again "#".
    Cure please!

    Do you find it with other browsers?

    If not, then try asking using Firefox for a.

    That you get with other sites with Firefox?

  • the just cost 29.99 make it difficult for a student to use this product... How can we reduce the cost?

    the just cost 29.99 make it difficult for a student to use this product... How can we reduce the cost?

    Hello

    Please contact customer support for problems with billing.

    ^ Ani

  • I can't seem to connect to my mail, I tried all the user names I can think. where can I get the correct information?

    I can't seem to connect to my mail, I tried all the user names I can think.  where can I get the correct information?

    Sounds like Hotmail you use. Yes?

    If so, repost to Forums Hotmail - Hotmail Sign In IssuesThreads section:

    http://windowslivehelp.com/forums.aspx?ForumID=b782602b-8e7c-40D8-a66b-b44824497a17

  • I just added a new user and it says the e-mail was sent, but the user has not yet received it. Y at - it a period?

    I just added a new user and it says the e-mail was sent, but the user has not yet received it. Y at - it a period?

    Anyone had this same problem? I'm doing something wrong?

    Hi Jesse,.

    Please follow did not receive expected Adobe email

    I hope this helps!

    Kind regards

    Sheena

  • Windows crew launch appeals to users in response to several error messages sent by the user?

    Windows help crew launch appeals to users in response to several error messages sent by the user?

    N ° view post sticky at the top of the page: http://answers.microsoft.com/en-us/windows/forum/windows_xp-security/i-received-a-phone-callemail-from-someone-saying/968f23dc-b7c1-4c8e-95a2-f89dde500ab8

  • A url in an e-mail message opens in the firefox window and then open a new (replacing the original window.

    Using Safari, when I click on a url in an e-mail message, it opens in a new window. Using Firefox, clicking on a url in an email replces the firefox window opened by a new one. I want that they open both.

    Is the email in Firefox and this page is accessing the linked page, or is the e-mail message in a separate program, and it launches the URL in the last active window of Firefox?

    If the problem is an external link, you can check your settings for the following preference:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the filter box, type or paste link.open and make a pause so that the list is filtered. Then look for that and if its value is not 2, change it to 2.

    Browser.Link.open_newwindow.override.external

    -1 = open_newwindow applies to external links (default)

    3 = open external links in a new tab

    2 = open external links in a new window

    1 = open external links in the active tab

    Edit: Probably a good idea to check this one, too, and set it to 2 or 3, as you prefer.

    Browser.Link.open_newwindow

    3 = divert new window into a new tab (by default) (checked *)

    2 = allow the link to open a new window (uncontrolled *)

    1 = new power window in the same tab

    * First check box in the Options > tabs (on Mac, preferences > tabs)

  • The first time to open Mail.app: opens the window Import Mail Message - crashes during the infinite-import cycle how to break it?

    El Captain 10.11.03

    .. 10.11.03 .after install, I leave el capitan migrate my old yosemite data.

    restart: when opening mail.app mail insists in the import of 'old' e-mail accounts of the

    standard window "import mail message.

    When importing, it breaks down. How to curb this "never-ending cycle" and of 'just' open mail without importation of message and let me

    everything by myself: accounts and import the 'old' one by one.

    This way I can also identify the import data that causes the accident and so on...

    Is there a file to delete that stop the routine of "import of message window?

    This crash report help? :

    Process: Mail [890]

    Path: /Applications/Mail.app/Contents/MacOS/Mail

    ID: com.apple.mail

    Version: 9.2 (3112)

    Generation information: Mail-3112000000000000 ~ 7

    Code type: X 86-64 (Native)

    Parent process:? [1]

    Manager: Mail [890]

    User ID: 501

    Date/time: 2016-03-09 23:16:00.867 + 0100

    OS version: Mac OS X 10.11.3 (15 d 21)

    Report Version: 11

    Anonymous UUID: BD98511C-1892-5044-70F8-62C35E853145

    Sleep/wake UUID: B53BF3CA-4CDB-4B18-BC26-CBCE4AFEE019

    Time since started awake: 4700 seconds

    Wake time: 1700 seconds

    Integrity of system protection: enabled

    Crashed thread: queue 2-[LibraryImportAssistant synchronouslyDoTheImport] hurry: NSOperationQueue 0x7f8d2615c3e0: NSOperation 0x7f8d2617f2b0 (QOS: UTILITY)

    Specific application Backtrace 1:

    0 CoreFoundation 0x00007fff946e8ae2 __exceptionPreprocess + 178

    1 libobjc. A.dylib 0x00007fff81590f7e objc_exception_throw + 48

    2 CoreFoundation 0x00007fff94589840 _CFXNotificationGetTaskCenter + 0

    3 MailCore 0x00007fff8ee1c21b-[MCMimePart (SMIMEDecodingInternal) _verifySignatureWithCMSDecoder:againstSender:signingError:] + 2941

    4 MailCore 0x00007fff8ee1a01e-[MCMimePart (SMIMEDecoding) decodeApplicationPkcs7_mimeWithContext:] + 4554

    5 MailCore 0x00007fff8edf3b36-[MCMimePart decodeWithContext:] + 411

    6 MailCore 0x00007fff8edee5d5-[MCMimePart decodedContentWithContext:] + 91

    7 MailCore 0x00007fff8edf42ae-[MCMimePart decodeMultipartWithContext:] + 140

    8 MailCore 0x00007fff8edf3b36-[MCMimePart decodeWithContext:] + 411

    9 MailCore 0x00007fff8edeedec-[MCMimePart parsedMessageWithContext:] + 95

    MailCore 10 0x00007fff8eddb40e-[MCMimeBody parsedMessageWithContext:] + 179

    11 MailCore 0x00007fff8edc08a7-[MCMessage searchableItemWithHTML:includingText:] + 2693

    12 email 0x00007fff96f14cff-[MFRecoveredMessage searchableItemWithHTML:includingText:] + 118

    13 mail 0x00007fff96f12b87 + [MFRecoveredMessage searchableItemForBodyData:plistData:path:persistentID:] + 335

    14 mail 0x00007fff96e04a08 __247 + [MFLibrary insertOrUpdateMessages:withMailbox:fetchBodies:isInitialImport:isMailboxRebuild: oldMessagesByNewMessage:remoteIDs:newDocumentIDs:setFlags:clearFlags:messageFla gsForMessages:copyFiles:progressDelegate:updateRowIDs:missedMessages:error:] _blo ck_invoke1168 + 18627

    15 mail 0x00007fff96e27e61 + [MFLibrary executeBlock:isWriter:useTransaction:isPrivileged:] + 766

    16 mail 0x00007fff96dff36b + [MFLibrary insertOrUpdateMessages:withMailbox:fetchBodies:isInitialImport:isMailboxRebuild: oldMessagesByNewMessage:remoteIDs:newDocumentIDs:setFlags:clearFlags:messageFla gsForMessages:copyFiles:progressDelegate:updateRowIDs:missedMessages:error:] + 6167

    17 mail 0x00007fff96e081cd + [MFLibrary addMessages:withMailbox:fetchBodies:isInitialImport:oldMessagesByNewMessage:rem oteIDs:setFlags:clearFlags:messageFlagsForMessages:copyFiles:missedMessages:erro a:] + 263

    18 mail 0x00007fff96e21ad1 + [MFLibrary importMailbox:] + 1640

    19 e-mail 0x00007fff96e24093 __46 + [MFLibrary importMessagesFromEnabledAccounts] _block_invoke2500 + 701

    20 mail 0x00007fff96e28469 + [MFLibrary executeBlock:isWriter:useTransaction:isPrivileged:] + 2310

    21 mail 0x00007fff96e230f7 + [MFLibrary importMessagesFromEnabledAccounts] + 4057

    22 mail 0x0000000109a431f3 + 1757683

    23 CoreFoundation 0x00007fff945b317c __invoking___ + 140

    24 CoreFoundation 0x00007fff945b2fce-[French invoke] + 286

    25 MailCore 0x00007fff8edf9036-[MCMonitoredInvocation invoke] + 245

    26 MailCore 0x00007fff8ee2b98e-[major MCThrowingInvocationOperation] + 48

    27 MailCore 0x00007fff8edb4cde-[major _MCInvocationOperation] + 426

    28 the 0x00007fff918c72fb Foundation-[__NSOperationInternal _start:] + 654

    29 0x00007fff918c6de7 __NSOQSchedule_f + 194 Foundation

    30 libdispatch.dylib 0x00007fff8617c33f _dispatch_client_callout + 8

    31 libdispatch.dylib 0x00007fff86180f6f _dispatch_queue_drain + 754

    32 libdispatch.dylib 0x00007fff8618763b _dispatch_queue_invoke + 549

    33 libdispatch.dylib 0x00007fff8617fc87 _dispatch_root_queue_drain + 538

    34 0x00007fff8617fa34 _dispatch_worker_thread3 + 91 libdispatch.dylib

    35 libsystem_pthread.dylib 0x00007fff961d568f _pthread_wqthread + 1129

    36 libsystem_pthread.dylib 0x00007fff961d3365 start_wqthread + 13

    Summary of the external change:

    Calls made by other processes for this process:

    task_for_pid: 2

    thread_create: 0

    thread_set_state: 0

    Calls made by this process:

    task_for_pid: 0

    thread_create: 0

    thread_set_state: 0

    Calls made by all processes on this machine:

    task_for_pid: 2405

    thread_create: 0

    thread_set_state: 0

    Summary region VM:

    ReadOnly part of libraries: Total = 325.4 M resident = 0 K (0%) swapped_out_or_unallocated=325.4M(100%)

    Regions in writing: Total = 376.5 M written = 0 K (0%) resident = 0 K (0%) swapped_out = 0 K (0%) unallocated=376.5M(100%)

    VIRTUAL REGION

    The NUMBER of DIMENSIONS of TYPE REGION (not melted)

    ===========                     =======  =======

    Accelerate.Framework 256K 3

    2048K 2 follow-up activity

    CG backup stores 5080K 4

    CG image 260 K 5

    CG shared images 240K 6

    CoreAnimation 168K 15

    CoreUI 1928 K 14 image data

    CoreUI image file 224K 5

    Ship 8192 K 2 continuations

    The Foundation 25.8 M 297

    Image IO 4096 K 2

    Kernel Alloc once 8 K 3

    MALLOC 282,9 258 M

    MALLOC 32K 7 cover page

    Tag memory 242 12K 2

    Memory 12 251 K 2 tag

    OpenCL                               8K        2

    Corpse process Info 2048 K 2

    SQLite page cache 15.2 M 106

    BATTERY GUARD 56.0 M 13

    The stack of 13.1 M 15

    VM_ALLOCATE 68K 10

    __DATA 36.3 M 349

    __IMAGE 528K 2

    __LINKEDIT 91.5 M 19

    __TEXT 233.9 356 M

    __UNICODE 552K 2

    mapped file 53.0 M 17

    16.3 shared memory M 10

    ===========                     =======  =======

    TOTAL 849,1 M 1501

    Exception type: EXC_CRASH (SIGABRT)

    Exception codes: 0 x 0000000000000000, 0 x 0000000000000000

    Note the exception: EXC_CORPSE_NOTIFY

    Request for clarification:

    "Reason for terminating app due to exception while now the database lock 'NSInvalidArgumentException',: ' *-[__NSArrayM insertObject:atIndex:]: object cannot be null"

    Abort() called

    You have locally stored messages slot "on my Mac"?

    You have IMAP or POP accounts?

    How much free space on your drive? Use disk utility to find this info.

    I wrote two articles that might help you. If you have the opportunity to start again in the Yosemite, you can export data, as explained before moving on to the post of El Capitan. If this is not possible, you can always ignore the upgrade process by importing your data. Let me know if you have any questions.

    Troubleshooting Apple Mail in OS X 10.11 El Capitan

    Capitan http://www.needhelp4mac.com/2015/10/Troubleshooting-Apple-Mail-in-OS-x-10-11-El-/

    Before moving to the post of El Capitan

    http://www.needhelp4mac.com/2015/11/before-upgrading-to-El-Capitan-mail/

    (Fair disclosure: Needhelp4Mac is my site.) I can receive some form of compensation, financial or otherwise, of the links on my site.)

  • TB crashes when you delete e-mail messages. Only the anti-virus is Windows Defender.

    When I click on an e-mail message and click one of the buttons < delete > the little blue circle lights up and I get a message "(ne répond pas)". " This is a < delete > click for the line of a message. Usually occurs after removing a few previous emails

    24.4.0 TB. Windows8.1. Windows Defender. All up to date.

    I checked. Do _not_ have McAfee, Norton, Avast, etc. system or in the form of modules.

    Tried to reboot Windows 8.1. a couple of times. Problem remains.

    Your initial problem was talking about freezing when you delete messages from Thunderbird.
    Still you see that now?

  • Sounds for mail, messages, etc. in the face of lost time. How to make a comeback

    I lost sounds to notifications for mail, messages, face time etc. I am running 9.3.1. Don't know where to start to get them back.

    Start with a force restart

    Restart your iPhone, iPad or iPod touch - Apple Support

    If this does not work

    Settings - sounds - change the selected sound for mail

    See if it "takes".

    If it extends to others

  • When sending e-mail message stuck in the Outbox. After a few moments, I get the following error message:

    When sending email-message stuck in the Outbox.  After a few moments, I get the following error message: your server has unexpectedly terminated connection. The possible causes for this include server problems, network problems, or a long period of inactivity. Account: ' * address email is removed from the privacy *', server: 'outgoing.yahoo.verizon.net', Protocol: SMTP, Port: 25, secure (SSL): no, error number: 0x800CCC0F

    Ideas for a solution?

    Thank you.

    This just started today? There are a number of people with Yahoo/Verizon today information system.

    http://forums.Verizon.com/T5/Verizon-net-email/outgoing-mail-not-working-in-Outlook-Express-again/m-p/303901

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-networking/i-cannot-send-emails-thru-Outlook-Express-6-the/9a518480-b86b-E011-8dfc-68b599b31bf5

Maybe you are looking for

  • issue of Sierra with safari

    Hi, I have a problem with safari conexion because other browser works well, the same problems with Apple Store. Can you help me, please

  • Pavilion dv7 WC159EA #ABU: Ribbon of hinge HP dv7-3000 power.

    Hello I opened my laptop and accidentally cut in half with a Ribbon. The Ribbon is in the middle of the hinge of the power on this image: http://www.discountedlaptopparts.com/media/catalog/product/1/0/100_7254_3.jpg My question is where can I find th

  • How do you play CD on your computer?

    I use a computer for some time, but have never played CD or DVD.  I know that I have available for the CD, not sure about DVD. I have tried to help and support, but have not gotten a real answer.  Please, I would appreciate a response.  This is the f

  • Windows 0xc00000a5 application error

    I have this "windows 0xc00000a5 application error" error when you try to synchronize my phone, update my antivirus software, try to install chrome and other sites that require an update and a response.  I use internet exporer 9, it is set as my defau

  • I need help my lab top is runing slow can you help me

    My Lab Top is runing slow