Adobe Livecycle: Save as Filename from Form Field Assistance

I have Livecycle E2 and Adobe 9.0.  I am trying to have a pdf save in a desired location with a filename that originates from a field form.  So far, I have created a folder level script under C/programfiles/adobe/acrobat 9.0/acrobat/javascript/xxxxxxx.js.  Inside the .js folder level I have this so far:
mySaveAs = app.trustPropagatorFunction(function(doc, path)
     app.beginPriv();
         doc.saveAs(path);
     app.endPriv();
myTrustedSpecialTaskFunc = app.trustedFunction(function(doc, file_path)
     // Privileged and/or non-privileged code above
     app.beginPriv();
          mySaveAs(doc, file_path);
     app.endPriv();
Also, I created a button on my pdf with a text field named "NAME".  I ran a javascript with mouseUp on the button with this code:
// Get the field value
var fn = getField("NAME").valueAsString;
// Specify the folder
var fldr = "/c/testing/";
// Determine the full path
var fp = fldr + fn + ".pdf";
// Save the file
myTrustedSpecialTaskFunc(this, fp);
For some reason, the file does not save at all in that location after typing in some text in the name field and hitting the button.  Any assistance would be greatly appreciated!

I have Livecycle E2 and Adobe 9.0.  I am trying to have a pdf save in a desired location with a filename that originates from a field form.  So far, I have created a folder level script under C/programfiles/adobe/acrobat 9.0/acrobat/javascript/xxxxxxx.js.  Inside the .js folder level I have this so far:
mySaveAs = app.trustPropagatorFunction(function(doc, path)
     app.beginPriv();
         doc.saveAs(path);
     app.endPriv();
myTrustedSpecialTaskFunc = app.trustedFunction(function(doc, file_path)
     // Privileged and/or non-privileged code above
     app.beginPriv();
          mySaveAs(doc, file_path);
     app.endPriv();
Also, I created a button on my pdf with a text field named "NAME".  I ran a javascript with mouseUp on the button with this code:
// Get the field value
var fn = getField("NAME").valueAsString;
// Specify the folder
var fldr = "/c/testing/";
// Determine the full path
var fp = fldr + fn + ".pdf";
// Save the file
myTrustedSpecialTaskFunc(this, fp);
For some reason, the file does not save at all in that location after typing in some text in the name field and hitting the button.  Any assistance would be greatly appreciated!

Similar Messages

  • Auto Create Filename from Form Fields

    Hello all,
    I am trying to find a way that I can save a form with a certain filename. I have the form create and all set to go. The user will be input some information into boxes. For instance I will have a Name box and a Date box. After the user is done filling out the form I would like the filename to be these two input boxes. Is there a way to do this? So basically I need to take these two form fields and have them be saved as the filename. Any help would be great. Thanks alot.

    You can export the data form the PDF using the FormDataIntegration service.
    Once you have the data in xml format, you can use a setValue and concatenate the value of the two nodes you're interested in.
    Jasmin

  • I have downloaded a trail version of adobe acrobat pro and when I try to use it, it says that it cannot be edited in acrobat, please use adobe livecycle designer to edit this form. I can't work out what I need to do?

    I have downloaded a trail version of adobe acrobat pro and when I try to use it, it says that it cannot be edited in acrobat, please use adobe livecycle designer to edit this form. I can't work out what I need to do?

    Acrobat XI is not distributed with Designer. Designer is now a separate product. You can create forms in Acrobat as an AcroForm or using Forms Central (an online forms program). You can print the form to a new PDF and then recreate the fields in Acrobat using the recognize form fields. You will likely have to fix the form fields, but that would be the process. Generally, once a form is taken to Designer, you can't bring it back without such steps.
    Designer is available with AA8 - AAX, but since is a separate product as I indicated.

  • Adobe LiveCycle Designer 7.1 - Barcoded Forms Changes

    For those of you that have upgraded to Adobe LiveCycle Designer 7.1 you should notice that there are a few changes to the Paper Forms Barcode object interface.
    On the Field tab you will see that the label may be generated automatically or manually which before could only be generated automatically. The most significant change may be found further down in the new Symbology pull-down menu. Not only can Barcodes be generated in the PDF417 format, but now you can take advantage of both QRCode and DataMatrix. Depending on the region as well as vertical will probably decide which format you will be using on your forms but it may be worth experimenting with different symbologies and data capacities based on the data of your forms to see if there may be a better alternative.
    On the Value tab you will find a slight change to the automated scripting. Tab-delimited and XML may still be generated automatically but you now have the option to select whether or not you would like to include the field names and labels. The Include Field Names separates the field names by tabs and encodes them as the first line of the barcode contents. The values are encoded beneath them. Include Label encodes the label (shown in Field tab) as the first tab-delimited field in the barcode contents. This is a great way to include a form identifier as a standard in your data (a good best practice). Keep in mind that when using the default tab-delimited formats the Adobe LiveCycle Barcoded Forms Decoder can create XML from tab-delimited data automatically which saves some time on the back-end integration effort.
    Again on the Value tab there is another new drop-down field named Collection. For those of you familiar with the Barcoded forms interface of Acrobat, you were able to select the fields that you wanted to be encoded in the barcode without having to do any custom scripting. The Collection interface basically provides you with the same functionality but under a great tree-view interface that allows you to manage the data that goes into your Barcode very easily, again, without custom Scripting.

    I am receiving the following error when I deploy the xdp form onto the adobe form server 6.0.
    =====error===================================
    2006-03-07 16:30:17,287 WARN [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.XFA=dataPrep is not a valid attribute of barcode, Attribute not loaded. Line 27066.
    2006-03-07 16:30:17,646 INFO [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.timing=!PERFORMANCE! XMLFormFactory.PAexecute() Setup + mpoFormAgentFactory->PAexecute Time: 0.74395 seconds
    2006-03-07 16:30:17,646 DEBUG [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.generic=XMLFormFactory::PAexecute mpoFormAgentFactory->PAexecute returned
    2006-03-07 16:30:17,646 INFO [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.timing=!PERFORMANCE! XMLFormFactory.PAexecute() Total Time: 0.74427 seconds
    2006-03-07 16:30:17,646 DEBUG [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.generic=XMLFormFactory::PAexecute - returning
    2006-03-07 16:30:17,662 WARN [com.adobe.formServer.RunTimeContext] class com.adobe.formServer.PA.XMLFormAgentWrapper : mid:29226 tid:2424.2688 sev:w text: dataPrep is not a valid attribute of barcode, Attribute not loaded. Line 27066..
    2006-03-07 16:30:17,693 DEBUG [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.generic=XMLFormFactory::PAexecute - entered
    2006-03-07 16:30:17,693 INFO [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.timing=!PERFORMANCE! XMLFormFactory.PAexecute() Data Setup Time: 0.00413 seconds
    2006-03-07 16:30:17,693 DEBUG [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.generic=XMLFormFactory::PAexecute - invoking mpoFormAgentFactory->PAexecute
    2006-03-07 16:30:17,974 WARN [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.XFA=dataPrep is not a valid attribute of barcode, Attribute not loaded. Line 27066.
    2006-03-07 16:30:18,724 WARN [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.XFA=Argument invalid: not supplied/range/etc.
    2006-03-07 16:30:18,974 DEBUG [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] It's for me: javax.management.MBeanServerNotification: notificationType=JMX.mbean.registered source=JMImplementation:type=MBeanServerDelegate seq-no=568 time=1141729218974 message=null objectName=jboss.web:type=RequestProcessor,worker=http-0.0.0.0-7001,name=HttpRequest3 userData=null, handback:2147483647
    2006-03-07 16:30:20,021 WARN [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.XFA=PaperFormsBarcode1 'access' attribute should explicitly be set to 'nonInteractive'. Field will be drawn as a boilerplate.
    2006-03-07 16:30:20,037 WARN [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.XFA=XFAImageService: Image cannot be resolved for node: PaperFormsBarcode1.
    2006-03-07 16:30:20,037 WARN [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.XFA=ImageStore does not contain the key [F[0].pbarcode[0].detail[0].PaperFormsBarcode1[0]]. Hint: The addImage method must be called first.
    2006-03-07 16:30:20,787 INFO [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.timing=!PERFORMANCE! XMLFormFactory.PAexecute() Setup + mpoFormAgentFactory->PAexecute Time: 3.09997 seconds
    2006-03-07 16:30:20,787 DEBUG [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.generic=XMLFormFactory::PAexecute mpoFormAgentFactory->PAexecute returned
    2006-03-07 16:30:20,787 INFO [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.timing=!PERFORMANCE! XMLFormFactory.PAexecute() Total Time: 3.10126 seconds
    2006-03-07 16:30:20,787 DEBUG [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.generic=XMLFormFactory::PAexecute - returning
    2006-03-07 16:30:20,818 WARN [com.adobe.formServer.RunTimeContext] class com.adobe.formServer.PA.XMLFormAgentWrapper : mid:29226 tid:2424.2688 sev:w text: dataPrep is not a valid attribute of barcode, Attribute not loaded. Line 27066..
    2006-03-07 16:30:20,818 WARN [com.adobe.formServer.RunTimeContext] class com.adobe.formServer.PA.XMLFormAgentWrapper : mid:18458 tid:2424.2688 sev:w text: Argument invalid: not supplied/range/etc..
    2006-03-07 16:30:20,818 WARN [com.adobe.formServer.RunTimeContext] class com.adobe.formServer.PA.XMLFormAgentWrapper : mid:12369 tid:2424.2688 sev:w text: PaperFormsBarcode1 'access' attribute should explicitly be set to 'nonInteractive'. Field will be drawn as a boilerplate..
    2006-03-07 16:30:20,818 WARN [com.adobe.formServer.RunTimeContext] class com.adobe.formServer.PA.XMLFormAgentWrapper : mid:29461 tid:2424.2688 sev:w text: XFAImageService: Image cannot be resolved for node: PaperFormsBarcode1..
    2006-03-07 16:30:20,834 WARN [com.adobe.formServer.RunTimeContext] class com.adobe.formServer.PA.XMLFormAgentWrapper : mid:18177 tid:2424.2688 sev:w text: ImageStore does not contain the key [F[0].pbarcode[0].detail[0].PaperFormsBarcode1[0]]. Hint: The addImage method must be called first..
    Can someone help?
    Thanks
    DINESH

  • Adobe Acrobat 7.0 Professional-Fillable Form Fields Disappeared

    Urgent Reply Needed --- After spending from 3 hours creating Fillable Form Fields - which I have done many times - the most recent form I just completed had all forms fields except one missing when I reopened the Adobe Acrobat document. How did this happen? How can I prevent it happening again as I have never seen this happen before?
    thanks - Bonnie

    Bonnie,
    You'll get a much quicker answer asking this question on the regular Acrobat User-to-User forum. This forum is Acrobat 3D Feature specific, and as such, only has people looking for 3D related issues. You'll get a much quicker answer on the other forum.

  • Import Text From Form Field into Subject Line of Email

    Hello,
    Is there a way to import text from a form field into the subject line of the email when sending back (attaching) the PDF form?  In other words, there is an "applicant name" and I would like that name to be the subject line of the email.
    I am using Adobe Acrobat X (10.1.7)
    If any one has aby guidance or resources online where I can locate this information I would greatly appreciate it!  I have been searching all day but have not found a solution yet. 
    Thanks!

    Thank you so much for the help.  For some reason I cannot get it to work though.   Now, when I hit the submit button it does not do anything.
    Previously, I had the following code under
    ACTIONS>Mouse Up>Submit a Form
    mailto:[email protected]?subject=Employee Application
    I removed the above mailto URL and put in your code as a Javascript function. I made sure that my field name matched the name in quotes within the code.
    I used the following:
    var subject = getField("lastname").value 
    this.mailDoc({
    bUI: false,
    cTo: "[email protected]",
    cSubject: subject,
    cMsg: "Type message here"
    Do you see anything obvious that I am doing wrong?
    Many thanks!

  • Adobe LiveCycle Designer query data from MII 12.0 via Webservice

    Hi folks,
    at the moment I'm "learning" how to create interactive forms with the Adobe LiveCycle Designer. I hope anyone already did something like that too and can help me a bit?!
    Creating forms with XML data in the background etc. is not that problem. Also using little schemas to provide data to a dropdown list - I fand that no trouble. But now I want to request some dynamic data from an external data provider.
    I have a nice book from SAP Press laying next to me that tells me how to create a webservice based on a BAPI in SAP and how that webservice delivers some table data. But before I try to get data out of SAP, I would like to retrieve data by using MII (12.0 at first). I already built a transaction that creates some XML and imported the WSDLGen as a new data connection in Adobe LC Designer. No problem so far. I can execute it and I get some data back. But the XML that comes back is not formatted as table data as expected from Adobe LC so I can't build a table from it. I only receive the first dataset - every value as a single value, not as a table or row.
    So does anyone know how to format the XML result in MII or how to combine it with a schema so that Adobe LC Designer is able to interprete it as table data? In the SAP example in the book the received data from the data connection of the webservice is shown as table data (a litte table icon) and my data from MII is shown as single values...
    Thanks
    Anika
    Edited by: Anika Delzeit on Feb 3, 2010 12:21 PM

    It sounds like you need use the adobe schema in MII so the output of your transaction matches it.
    Regards,
    Jamie

  • Bookmarks from form fields

    Is it possible to automatically create bookmarks from the text that the user types into form fields?

    In principle it's possible, but remember that bookmarks can't be added in
    Reader.

  • Adobe Professional 8 and Mozilla Firefox form fields

    I have created form fields and comments in Adobe 8 Professional to cover text.  When using Professional 8 to view the document in the Firefox 21.0 the form fields and comments boxes do not show up (they are read only and locked).  When viewing the document using Reader 8 or Standard 9 they do show up.  Is there something else I am to do to prepare the document so that the form fields and comments are visible in Professional?

    FireFox has a built in PDF viewer.
    It does not work with form fields (https://support.mozilla.org/en-US/questions/950946)
    A really old version of FireFox won't show the problem because it uses Adobe software instead.
    It's possible to set up FireFox to use Adobe software again, but only computer by computer.
    Botttom line is your instructions to users need to make it really clear what they must do, and simply having Adobe Reader or Acrobat installed is not enough.

  • Gather information from form fields, sort into links for searching

    I have a PDF Acrobat form that I email to about 100 people, they return the completed forms to me and I put all the forms together into a single PDF.This removes the form fields, but leaves the form information that was filled out.
    I need to set up an easy way for people to navigate and search the forms by several criteria: a person's name, their country of origin, company name, and so forth. Other than manually creating links for each of these search criteria, is there a more efficient way?

    You can export the data form the PDF using the FormDataIntegration service.
    Once you have the data in xml format, you can use a setValue and concatenate the value of the two nodes you're interested in.
    Jasmin

  • Create dynamic directory name from form field on Sharepoint

    Trying to save pdf file to sharepoint site using URL; but need to create directory (initially) and filename dynamically. After directory created addtn'l files may populate dir, so need to check for directory exists; if so just copy files to dir based on field name. I'm able to save files to hard-coded location only, based on below.
    How to check and/or create dynamic directory base don field name?
    // folder level JavaScript to allow access to the identity object properties
    trustedIdentity = app.trustedFunction( function (sProperty)
    var iProperty = "";
    app.beginPriv();
    iProperty = identity[sProperty];
    app.endPriv();
    return iProperty;
    // folder level JavaScript to allow Save As population of file name
    mySaveAs = app.trustPropagatorFunction(function(myForm, path)
         app.beginPriv();
         var myForm = event.target;
         return rtn = myForm.saveAs(path);
         app.endPriv();
    myTrustFunct = app.trustedFunction(function(myForm, path)
         app.beginPriv();
         var vTest1 = event.target.xfa.resolveNode("topmostSubform[0].Page1[0].Test1[0]").rawValue.toString();
         var vTest2 = event.target.xfa.resolveNode("topmostSubform[0].Page1[0].Test2[0]").rawValue.toString();
         var vTest3 = event.target.xfa.resolveNode("topmostSubform[0].Page1[0].Test3[0]").rawValue.toString();
         var vTest4 = event.target.xfa.resolveNode("topmostSubform[0].Page1[0].Test4[0]").rawValue.toString();         
         var vpdf_url=location.href;location.href='http://mysite2010.com/documents
         var vPath = "/vpdf_url/" + vTest1 + Test2  + vTest3 + " .pdf";
              //console.println("vPath: " + vPath);
         var retn = mySaveAs(myForm, vPath);
         app.endPriv();
         return retn;

    Acrobat/Reader cannot create a directory. The directory needs to exist before Acrobat/Reader can save a PDF file to that directory.
    You could create a plug-in and use that plug-in to create the directory. The plug-in should also be able to determine if the directory exists or not.
    SharePoint can be tricky because it is not like most web sites. There is a special dash board that helps manage the different parts of SharePoint like list, folders, web parts, documents, etc so you may need to be aware of these features and adjust for them.
    For  folder level functions, I would not use any LiveCycle JavaScript variations. The folder level scripts are shared and accessible by Acrobat forms.

  • Problems with Submitting a Adobe Livecycle Designer 8.0 created Form after Update to Adobe Prof. 8.1

    Hi folks,
    can someone tell me, which problem is it? Forms created in Livecycle Designer 8.0 with Adobe Prof. 8.0 don't have problem with submitting, but with Adobe Prof. 8.1.
    Thanks for help or information in adv!

    Hello Mr Aandi Inston,
    thanks for your quick answer! My problem is the following: The functionality email submitting in Livecycle 8.0 created form under Adobe Prof. 8.1 is malfunction when you open the form in Adobe Reader 8.x. There are non error messages to able to locate the problem. When you click the submit button, nothing is happen. Forms created before update adobe prof. 8.0 to 8.1 didn't have problem like this.
    Normally, after clicking submit button ms outlook popup with suitable subject, attachment and so on. Executing the form in Adobe Prof. you wont have problem to submit form per email. Now I suppose that this problem is caused by updating???
    Why do I claim it? After failed testing the modified form based on dynamic interactive template form "Purchase Order.pdf" from Designer 8.0 under different windows os and ms office versions I tried to test the above-named template, the same problem you will get: email submitting is malfunction!
    I hope, my description will be detailed enough to you and I'm glad to hearing from you soon!

  • How to update session state from form field values without submitting page?

    Hi,
    I am new to Oracle APEX. I am using Oracle Apex 4.2 on Oracle 11g release 2. The problem is that when I am entering data on a form, when I enter a value in one field and move to the next field, how can I use the value of first field in the validation procedure of next field? I know that when we enter data in fields, the session state is not updated with these values until we submit the page... right... but I have seen that if there is a control of List box type, then Apex gives an option "Action When List changes" where we can choose option to update corresponding session state field with the value of list box item, without submitting the page.
    Now my questions is why this option is only available for List box items? why not for other item types like Text box, Check box,... ? can someone please help me with this?
    (the issue with update of session state depending on page submitting, is that we need a complete network round trip from client to server in order for it. However if we can update session state variables without submitting page, then we can avoid this network traffic).
    Any help will be greatly appreciated. Thanks in advance.

    Create a dynamic action on change and run a PL/SQL process there with the following code:
    BEGIN
       NULL;
    END;Page items to submit > your item.
    This will set the session state without submitting the form.
    Further examples here:
    http://apex.oracle.com/pls/apex/f?p=31517:229
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Adobe Bridge CC : metadata copy from one field to another for multiple files

    So I am using Bridge CC for managing audio files and have many many MP3's that I need to copy or move one field of metadata to another.
    ie:  copy "Audio Artist" field to "IPTC Core Creator" Field
         move "IPTC Core Description" to "Video Log Comment" field
    Is there a script I can add that will let me select multiple files, and have it copy or move all the info from one of these fields to another?
    Thanks
    Scott
    [email protected]

    Scott, I did have a go at this but I can't get the right path to the logComment in the XMP…
    Coping artist to creator works fine… If I find the solution I will post back…

  • Clearing NaN error from form fields.

    Hey all,
    Working with this script I have and I thought my condition should clear the NaN erro but it does not.  Does anyone have a clear for the NaN error that might work better.  Basicully,  all the script does is the person using it puts military time into 2 different areas.  One "On" and one "Off".  The NaN error stays in the field until they person using the form puts in the 2 times.
    (function () {
        // Get the field values, as numbers
        var v1 = getField("HoursOFF1").value;
        var v2 = getField("HoursON1").value;
        var v3 = getField("HoursDif1").value;
              var time1 = v1.split(":");
              var time2 = v2.split(":");
              var min1 = time1[0]*60 + time1[1]*1 //
              var min2 = time2[0]*60 + time2[1]*1 ;
        if (v3 !== 0) {
           event.value = ((min1 - min2) / 60);
        } else {
            event.value = "";
    If anyone can spot my error it would be much appreciated.  Thanks in advance!

    Thanks for the help!  I still had to twik it just a little bit more.  Final code follows:
    (function () {
        // Get the field values, as numbers
        var v1 = getField("HoursOFF1").value;
        var v2 = getField("HoursON1").value;
              var time1 = v1.split(":");
              var time2 = v2.split(":");
              var min1 = Number(time1[0])*60 + Number(time1[1])*1 //
              var min2 = Number(time2[0])*60 + Number(time1[1])*1 ;
        if (v1 != 0) {
           event.value = ((min1 - min2) / 60);
        } else {
            event.value = "";

Maybe you are looking for

  • How to block particular function module for user or users

    Hi,    Can anyone let me know that if I want to prevent users for certain function module or modules.Is it possible to do so.Please let me know. Have a great day ahead.

  • Fonts getting clipped in Acrobat 9.0 Pro

    In some pdf files created either by earlier versions of Acrobator by third party products, the fonts are clipped on the bottom (at the line).  Any letter that hangs down below the line are clipped making the document almost impossible to read in Acro

  • How to clean the disk

    Hello, I have a MacBook Pro with 256Gb of SSD, and I only have 20Gb available. If I look at the directories, I only have 100Gb of space occupied. So... Where is my available space? where  are my 100Gb lost? How can I recover my lost space? Thanks in

  • Question: How to remove prompt in recording using MMAPI

    Hi, we have been developing a softphone using j2me. Our goal is to record voice (using j2me) into a byte array and deliver that as a packet either through bluetooth or wifi. We need to capture voice at a certain interval, stop the capture, deliver, a

  • How to extract 911 report from Call Manager

    Hi, It has been requested I provide a report showing only 911's and where they are originating. Does Call Manager have a utility I can use to extract this data? Thanks to all in advance, it is greatly appreciated.