Can someone clean up my script?

First let say me, I am completely new to this. My supervisor asked me to launch the conversion of word forms in PDF format and add special features, such as auto generating emails after a digital signature.

This is the script I have, copied and under the direction of the line about change of e-mail when you submit a form using Acrobat X Pro

Here is my edited script:

Build the text in subject line of several fields of form fields

SubStart = "" ask for the non-standard equipment for: "".

CustomerName = getField("name2").valueAsString;

space = ""

numsign = ' # '.

reqidnum = getField("reqid").valueAsString;

var subj_text = substart clientname + space + numsign + reqidnum + numsign;

Send the email

mailDoc({)

    cTo: " [email protected] ", "

bassujetti: subj_text,

CMSG: "body of the e-mail message is here."

});

So as you can tell, I'm not all that good. I had to use a variable to put a space in the subject line.

Here's how the subject line looks like with the above script:

Application of nonstandard equipment for: John Smith # 123456 #.

How can I clean it so I don't just keep using the variables? I know theres a way, I do not know how.

Thank you

You don't need the variables of space and numsign, then you could do instead:

var subj_text = substart + clientname + "' # ' + reqidnum + ' # ';"

Tags: Acrobat

Similar Questions

  • Can someone tell me why 'Script Skipper' has been disabled by the administrator?

    I'm looking for a script that disables javascript prior to load a Web page. I was told that the Script Skipper is such an addin. But this script has been disabled by the administrator. Can someone tell me why?

    This add-on? Or can you find a more recent version of this elsewhere?

    https://addons.Mozilla.org/en-us/Firefox/addon/script-skipper-3x/

    Version 1.0.2
    Published on August 28, 2010 14.3 KB
    Works with Firefox 1.5 - 4.0b4

    With only 69 users without ever obtaining a comprehensive review and was never updated to the version of Firefox 4 + -, I would classify it abandoned further.

  • Can someone help with the scripts on this file?

    Hi, I hope someone with a bigger brain can help me here.

    I have an existing Flash CS3 file that makes up the result to http://www.infusion-set.com/Flash/eLearning/Inset30/inset30_eguide.html .

    The customer asked if I could add an extra tab at the top after that 'group' called 'Contact us' with link to an additional page. The design was done in ActionScript 2 with references to XML files for dynamic content because it has been done in other languages.

    I modified the XML file with the correct references to a new page and a .swf file that accompanies it to play in the field of animation.

    I tried a .fla version where I duplicated one of the existing tabs script, changed the XML references and changed the variables if necessary to "con or"Con"(which is to reach us). Unfortunately, he made the menu tab go completely off the page and was patently false in some way.

    Can someone give me a clue as to what to change here on the original file that I am a novice with ActionScripts, so ask me.

    For reference, I have attached the HTML files with scripts of original file and my incorrect version. The chronology is 103 images with the scripts placed in frame 1 and 102

    Thank you.

    Garry

    The buttons are all created using the same library object (but MC), except for the code you have in the revised file does not call on it for the con button.

    You calling on something with a name of 'con' link, which tells me that a quick check is not - then it is undefined in the code when you try to use it.  I found this by using trace (newConBut._x); After its _x value was assigned, as I said, you should try.   So the first thing you want to do is to change the following line from...

    var newConBut = _root.attachMovie ("con", "conbut", _root.getNextHighestDepth ());

    TO

    var newConBut = _root.attachMovie ("but", "conbut", _root.getNextHighestDepth ());

    so that it uses the but MC who is used to this end in the library.  So, you want to correct the assignment _x of the buttons and I think that you had previously...

    newConBut._x = 650 - newConBut._width;
    newRecBut._x = newConBut._x - newRecBut._width;

    Here is a picture of what these changes (note, without the XML file, I had to finagle things just to work, then the labels of biutton are not what they will be)...

  • IMac ongoing enforcement if slow takes like 5 min to open the page if it opens even, I don't know what or how to get rid of the things that is what actually happen how to clean what should be cleaned as all these extensions, please can someone explain ste

    I'm no computer expert and cannot afford to have my iMac cleaned. I don't know what to clean or how to do it.  I have extensions that I don't know which ones to delete, things like that, not sure what flash player I need or does come with your old iMac 2007?  I have Adobe who is good or bad but there are a few other does not say what I really should use.  I hate feeling so stupid and for the past 3 days, my computer works so slowly takes good 5 min to open a page opens it sometimes say oops error, waited for a long time, I even guess.  I don't know how to fix or what I should be getting rid of or keep.  I finally get rid of all the caches, just took a chance, still no improvement.  I have never on this point but can't afford to get whatever it is, I need to back up.  So please, can someone help to shed light on this point, what to delete it so my computer can run like he did?

    Thank you very much

    Sandie

    EITHER back up front what!

    Please post a report of EtreCheckof your system. We then look for obvious problems. Please click on the link, download the application and run the report. Once you have the report, please copy and paste into your response to this post.

    If you would like more information on what is EtreCheck, just click on the link and you will find a description of the application.

  • Can someone explain how to clean the screen of the iPad?

    Ok. MY iPad screen continues to become dirty when I use a cheap touch screen stylus. Can someone explain how to clean iPad screen?

    See here: cleaning of your Apple - Apple Support products

    -AJ

  • HI I'm new to HYPERION planning. Can someone help me with the script Calclation.

    I wrote a script DataExport in the hyperion planning calculation script.

    The Script is validated and successfully deployed. But I do not get to the exported file. What's in it.

    This is my script.

    exportactual:

    {SET DATAEXPORTOPTIONS

    DataExportLevel Level0.

    DataExportDynamicCalc

    DataExportColHeader 'period '.

    DATAEXPORTCOLFORMAT ON;

    };

    DIFFICULTY (@IDESCENDANTS ("all accounts", 0), "Jan", "FY14', 'Power', 'Work', 'New York', 'RIN')

    DATAEXPORT 'file ' '; '. "D:\exportedfile.txt" "#MI";

    ENDFIX

    The rule runs successfully.

    When I look in the D: the exported file is not created.


    When I look in the rule once again it displays / / error detected while trying to perform the work: exportactual


    I'm new to this environment.

    Can someone give me suggestion.

    You can find the file in the Essbase server.

    Check in one place everything you mentioned in script in Essbase Server.

    Thank you

    Mady

  • Can someone provide me with a script powercli to clone a vm under tension of mass and customize them.

    Can someone provide me with a Powercli script to clone a vm under tension of mass and customize them.

    And where is the script will fetch this information?

  • Can someone help me create a script to repeat to simply open the dialog box to create a link?

    Can someone help me create a script to repeat to simply open the dialog box to create a link?

    the "Connect" command uses the same dialog box as the command to "Place", except for the option "Replace" verified... so, use Ctrl + Shift + P to bring up the place dialog box, select your new image and select the checkbox "replace".

    If check 'Replace' with the mouse slow you down, after you have selected your image, the tab key 'press' 3 times to change the focus, and then press the SPACEBAR to check it out, then ok to place.

  • Can someone provide me with a groovy script to make a simple alert for anythin

    Can someone provide me with a script simple roovy which can be used to craete an alert for a threshold of data... I just need a simple script that I could use to define my own script.
    down the line.

    I do not know groovy and I'm NOT a person of java. So learning groovy is really hard for me.

    Deploying the dir fixed link:
    {JBOSS_HOME}/server/default/deploy/hq.ear/hq.war/hqu

  • Script for the selection of consecutive paragraphs - can someone help me?

    Hello

    I have this script that works very well. He then applied following a Style to the paragraphs I selected with the keyboard in Indesign CS5:

    var style_name = "cabecalho."

    var doc = app.documents [0];

    var first_pstyle = doc.paragraphStyles.item (style_name);

    var cur_sel = app.selection [0] .paragraphs;

    cur_sel [0] .appliedParagraphStyle = first_pstyle;

    If (cur_sel.length > 1)

    {

    for (n = 1; n < cur_sel.length; n ++)

    {

    cur_sel [n] cur_sel [n - 1].appliedParagraphStyle.nextStyle = .appliedParagraphStyle;

    }

    }

    But before you run it, I use the keyboard to select the 3 paragraphs for the script. I know that it is possible to add code at the beginning to do the script select the paragraph where the cursor and the next 2 paragraphs and avoid manual selection because it's always 3 paragraphs.

    I don't know how to do this. Can someone help me?

    Thank you in advance. Greetings from Madrid

    It's a little rough, but you get the picture:

    var style_name = "cabecalho"var doc = app.documents[0];var first_pstyle = doc.paragraphStyles.item(style_name);var story = app.selection[0].parentStory;
    
    var cur_sel = app.selection[0].paragraphs[0];cur_sel.appliedParagraphStyle = first_pstyle;
    
    var nextpar = story.paragraphs.nextItem (cur_sel);nextpar.appliedParagraphStyle = cur_sel.appliedParagraphStyle.nextStyle;
    
    cur_sel = nextpar;var nextpar = story.paragraphs.nextItem (cur_sel);nextpar.appliedParagraphStyle = cur_sel.appliedParagraphStyle.nextStyle;
    

    Peter

  • Can someone cause a glance to this php script?

    Ok! to hear the script! It work fine! but a problem. When I get the email it looks the same >

    Base color: NaturalTread color: black

    I want the email to look like is >

    Base color: natural
    Tread color: black
    IE I don't want all the "var" on online!

    Hear my php code >
    Can someone have a glance to give me some poniters?

    I'm learnig. And just found this >
    <>
    $sendTo = ' * @hotmail.com ';
    $subject = 'combo Test two. "
    $headers = "from:". "." $_POST ['name'];
    $headers. = «<" .="" $_post["email"]="" .="" "="">\r\n » ;
    $headers. = "reply-To:". "." $_POST ['email']. « \r\n » ;
    $headers. = "return-Path:". "." $_POST ['email'];
    $message. = $_POST ["baseColor"]. « \r\n » ;
    $message. = $_POST ['treadColor']. « \r\n » ;
    mail ($sendTo $subject, $message, $headers);
    ?>

    You must put Carridge & newline return:
    \r\n

    And good luck to you! Thanks for the help of my friend!

  • 10.10.5 OSX runs slowly. Can someone suggest a middle course 'housekeep' of the system?

    My iMAC G5 (Yosemite 10.10.5) seems to work very slowly, and I don't know the hard drive is filled with programs of foreign languages useless, etc, etc.   I tried to use the internal features of the Apple disk utility, but there has been no noticeable improvement.  I also tried to download OnyX, butI received the message that my system does not support the application. Can someone please suggest a safe way to make a clean-up/housekeeping by car? .........

    Please after the release of EtreCheck and someone will give you a few suggestions on cleaning house.

    <https://discussions.apple.com/docs/DOC-6174>

    <http://etrecheck.com>

  • Can someone tell me what is happening with my Satellite A30?

    Can someone tell me what is the problem with my computer laptop satellite A30 514 is? The problem is that my laptop is very easy get hot and the fan never stop turning after 15 minutes and I continue to use the laptop about 1 hour, I guess that the laptop GET overheat auto power off.
    Help me to know what is the problem.
    Thank you.

    HI Yves,

    It sounds like overheating to me. This is usually caused by a build-up of dust in the cPU-heatsink which keeps air from cooling fans to pass through. You can try to use a hose of vacuum cleaner against the bars of suction air suction debris.

    Kind regards

  • Can someone tell me about the GPS?

    I install the GPS of ThinkVantage software, but he told me that there is no GPS hardware?

    and install it using the script will install the software, but when it works, it seems "cannot communicate with com port.

    My W500 model is CTO 4058, and can someone tell me how to set up the GPS?

    Hello Whitebob,

    Yes you are right! Please look here, it seems that a sim card must be in the card reader.

    Also, consider the hardware switch.

  • How can I clean my files?

    I do not have a disk, how do I clean the files that I have to get rid of to speed up my laptop? Brand "Lenovo"?

    Can someone help me please?

    Susan

    What version of Windows do you have?

    A better program of disk cleanup is cCleaner. cCleaner comes with a registry tool. Do not use this tool as any registry cleaner could lead to the creation of very difficult to resolve system errors.
    http://www.CCleaner.com/download

    1.9. When you open cCleaner you will see four large icons to the left of the window. Here's cleaner them, registry, tools, and Options. For routine maintenance, you normally acceding Cleaner (this is not the mentioned registry cleaner later). When using for the first time only, you can accept the default settings.

    1.10. some observations on the parameters. On my computer, I do not have the boxes before the passwords saved selected. In a less secure environment, you could check this option and set cCleaner to run automatically when the computer starts. You also cannot check the boxes in front of shortcuts from the Start Menu, desktop shortcuts and historical form. You must check the boxes according to your needs. Bad first time options causes irritating no disasters.

    1.11. the second icon that you see when you open cCleaner's registry. A reserve many experienced users have about cCleaner, it's that it comes with a registry cleaner. This tool should not be used. By using a registry cleaner, but it is the case, provides significant benefits and there is always the risk of creating insoluble system errors, which cannot be resolved by reinstalling the operating system and all that that implies. You will avoid any possible problem of not not by clicking on the Save icon.

    1.12 the third icon that you see when you open cCleaner is tools. If you click this icon, it gives you access a routine plus service options. The first two tools are uninstalled and commissioning. I do not use these tools, preferring to use other software options. The third tool is the restoration of the system, which is covered in the next paragraph. The fourth tool is Wiper Drive and you will find reviews about this tool later

    1.13 removing the system restore points can be important if you have little free disk space. The ability to delete them is one of the tools options. You can selectively remove those created in less important moments. This makes it easier to hold the restore points for long periods without keeping large unwanted files, whose inflexible approach to disk cleanup fails to offer.

    1.14. you can't remove the last restore point using the cleaning disc or cCleaner. If the last restore point contains malicious software, you can turn off and then turn on system restore. This has the disadvantage that restore all points are removed when you want to keep more restore points that are not infected. How to get round this problem is to create a new restore point when you are satisfied with your computer is free of malware and then remove the infected restore point.

    1.15. in normal circumstances, you probably rarely need to use Driver wiper. However, there are situations like if you gave the computer to someone else, then the tool may be useful. Please note that the wiper Drive, opening, generates a warning message, which should not be dismissed lightly. Using wiper Drive for the wrong reason could have serious consequences.

    1.16 the fourth icon is labeled Options. Many configuration options are available here. You can configure cCleaner to run when start you but remember that this will slow down the boot. Another setting allows you to include or exclude cookies. Yet another allows files named to exclude.

Maybe you are looking for

  • Conditional highlighting with checkbox in the two cells by the numbers

    I have two columns. Check boxes, the other contains text. I want to apply formatting conditional for text, based on the checkbox (true/false) value.

  • connection Wi - Fi 10 hidden iOS problem

    Hello In our company, we manage different iPhone models (5-7) and iPad (iPad mini via iPad Pro). After that iOS 10 upgraded, particularly iPhone 5 s devices have begun to forget the hidden SSID networks. Devices not reconnect to the hidden network un

  • Apple Watch does not work

    So do not know how this will go down, but I think of my Apple Watch was the biggest waste of money so far, very disappointed. 1. it just doesn't work very well, everything works slowly and measures are very imprecise. 2. the quality is not great, tha

  • Keyboard function keys defined

    Where can I learn what the function keys are set up to do? I want to dedicate a couple of them to be shortcuts to my home page and Outlook. I know how to do this, but I guess some are already for some dedicated functions, and I don't want to interfer

  • I need help and I want to talk to a real person

    I need help and I want to talk to a real person