XFA form with button to save file with unique filename

Is there a way to save a file with a unique filename using some data a user has entered (name, for ex.) that will fire when the user clicks a Print button? Attached is a file for reference.

Yes, I'm getting close. With this
var 
vTargetName = Page1.dateStamp.rawValue + " HSS Foot & Ankle for Patient " + Page1.First_Name.rawValue + " " + Page1.MI.rawValue + " " + Page1.Last_Name.rawValue + ".pdf";
var  
vCurrentName = event.target.documentFileName.toString(); 
if  
(vCurrentName == vTargetName)app.alert("Thank you. Your form has been saved."); 
else
app.alert("There was a problem. Your form has not been saved.");
I do get an alert when the PDF is saved. But if I modify the folder js to say var vPath = "/c/HSS/ instead of var vPath = "/c/HSSSave/ I don't get the alert "There was a problem." Do you see an error in the else condition?

Similar Messages

  • Form- Submit Button/Drop-down file format and error message HELP (!!)

    I am setting up a form with a drop-down menu and a submit a form button that is supposed to email the form. My coworker opened it and filled it out and pressed submit and it replied "the file may be read-only or another user may have it open..." How do I fix this problem as the creator of the form not the receiver? Also, is there a way that I can save it in a format that would allow people who do not have adobe acrobat reader on their computers to still be able to use the drop-down and submit button?

    Have you tried anything from here yet: http://helpx.adobe.com/dreamweaver/kb/troubleshoot-javascript-errors-dreamweaver-cs4.html

  • How can I get data from excel to populate a form with unique entries and distribute?

    I would like to use Adobe LiveCycle to create a form, then use data from an excel spreadsheet to populate the form in a repetative fashion so that each person in the spreadsheet gets a populated form with only their applicable data on it.
    Also, if there is a way to use a mail merge function, this would be helpful to know since each person is to receive their copy as an attachment through email. 
    Any help would be appreciated - have been researching for 2 days now how to do this and am at a loss.

    See Connecting a From to a Database and Connecting to a Web Service by Stefan Cameron. Excel can have named ranges that can be connected an ODBC connection.

  • Problem assembling XFA forms with DDX NoForms/ or NoXFA/ tags

    I am unable to assemble or stitch together multiple PDFs into one.<br /><br />Runtime DDX<br />  <?xml version="1.0" encoding="UTF-8" ?><br />- <DDX xmlns="http://ns.adobe.com/DDX/1.0/"><br />- <PDF format="XDP" result="package.pdf"><br />  <PDF source="PDF2.pdf" /><br />- <PDF source="PDF1.pdf"><br />  <NoForms /><br />  </PDF><br />  </PDF><br />  </DDX><br /><br />Runtime Error<br />com.adobe.livecycle.assembler.client.ProcessingException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided.<br />at com.adobe.livecycle.assembler.AssemblerServiceImpl.makeResult(AssemblerServiceImpl.java:8 28)<br />at com.adobe.livecycle.assembler.AssemblerServiceImpl.execute(AssemblerServiceImpl.java:467) <br />at com.adobe.livecycle.assembler.AssemblerServiceImpl.invoke(AssemblerServiceImpl.java:408)< br />at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />at java.lang.reflect.Method.invoke(Method.java:585)<br />at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)<br />at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)<br />at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)<br />at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)<br />at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:342)<br />at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(Ej bTransactionCMTAdapterBean.java:212)<br />at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapter_z73hg_ELOImpl.doS upports(EjbTransactionCMTAdapter_z73hg_ELOImpl.java:223)<br />at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:104)<br />at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)<br />at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)<br />at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)<br />at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)<br />at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)<br />at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)<br />at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:132)<br />at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)<br />at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)<br />at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)<br />at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)<br />at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)<br />at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(AbstractMessageReceiv er.java:315)<br />at com.adobe.idp.dsc.provider.impl.ejb.receiver.EjbReceiverBean.invoke(EjbReceiverBean.java: 156)<br />at com.adobe.idp.dsc.provider.impl.ejb.receiver.Invocation_fpvhue_EOImpl.invoke(Invocation_f pvhue_EOImpl.java:60)<br />at com.adobe.idp.dsc.provider.impl.ejb.receiver.Invocation_fpvhue_EOImpl_WLSkel.invoke(Unkno wn Source)<br />at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:550)<br />at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)<br />at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:440)<br />at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.

    The AssemblerResult.getJobLog() method will give you an XML file that contains the details of what went wrong. Most likely the issue is that the documents being assembled are not convertable to XDP format.

  • Extended rights gets lost if user saves file w diffrent filename Why?

    I have a question related to extended rights.
    Background: I have a editable form field pdf file that I enable "extended rights" (acrobat 9 pro).
    So that my users can fill in the form fields and save it and update the file later and then return the file (with the acrobat reader).
    It seems like that when the users save the file (with a new/different file name) then the form fields are locked for editing after that the form is useless(not editable).
    Is this a bug or is there a good reason or a workaround for this?
    Best regards
    -Lars

    I have a question related to extended rights.
    Background: I have a editable form field pdf file that I enable "extended rights" (acrobat 9 pro).
    So that my users can fill in the form fields and save it and update the file later and then return the file (with the acrobat reader).
    It seems like that when the users save the file (with a new/different file name) then the form fields are locked for editing after that the form is useless(not editable).
    Is this a bug or is there a good reason or a workaround for this?
    Best regards
    -Lars

  • Exporting a multipage InDesign document to single page PDFs but with unique filenames using scripts

    Hi,
    I'm using InDesign 5.5.
    My goal is to export a multipage InDesign file into single page PDFs but each single PDF must be uniquely named.
    For example;
    InDesignFileName_487275123.00.pdf
    InDesignFileName_734876882.00.pdf
    ...and so on.
    I've spent a great deal of time searching online and the closest I have found is  software called Output Factory which works fine.
    The way Output Factory works is by placing a script label within a textframe on the master page in InDesign. Then whatever is typed into the text frame on each the separate pages defines the file name of each separate page.
    However if I can solve this problem without any investment costs my boss will be very happy
    I found PEU5 which works great for exporting into single pages, it's now a case of naming each single PDF but I know nothing how about to create a script but I get the gist of what they do. My understanding is that a script could solve the second half of my problem.
    Can anyone help?
    Thanks.
    S

    Thanks Peter but but I don't think this is what I'm looking for.
    I did find this post http://forums.adobe.com/thread/841982 but I can't seem to get the script to work.
    This is the error message I get when I run the script... any ideas what I'm doing wrong?

  • How to create placeholder garphics with unique filenames shown as text?

    I need to create quite a few placeholder graphics, which are all the same
    size and background colour, and which show the filename of the graphic as
    text in the graphic. Later each will be replaced.
    I have the filename list but am not sure how I would automate this process?

    There is already a Script for that. AddFileName and AddFileName Plus Date. If they are not in your Scripts folder alreagy, they are available on the Adobe Exchange I believe.

  • How to fix the firefox buttons not displaying correctly (i.e. the "save file" button when trying to install an add on)?

    For example, the button for "save file" when downloading an add-on does not display correctly. It works nevertheless, but the button itself is not showing up correctly.
    *edit: sp errors*

    It looks that you have made changes to the appearance of button that cause items and text to be larger.
    In your case this doesn't seem to work properly with the consequence that the middle part of the button gets distorted.
    I'm curious if this artifact would move to the other (Cancel) button or disappear if you would use the Tab key or cursor key to set focus to the Cancel button or if it is a problem with the label text that isn't default (OK or similar).

  • Encore won't save project with new filename

    I have just rendered a bluray disc image of a project. Now I want to save a version of the project to tweak it specifically for the DVD image, and preserve the bluray project. On the first failed saved I learned in this forum to run Encore as an administrator. Did that, but now Encore just crashes after copying most of the project files. There's enough room on the volume, as I've already corrected after that failed save.
    It is a lenghty but not particularly complexly authored project consisting of a 1 hr 26 mins video timeline from a PrPro timeline exported via Adobe Bridge; a short picture gallery rendered in PrPro as an m2v video file; 2 motion and 2 still menus; and English and Japanese subtitles for the long video timeline. As the project developed I had saved progressive versions with unique filenames so I'd have restore points if a file I was working on got corrupted. No problem then.
    But now in the final stages of the project I can no longer make an incremental save, Any ideas?

    Yes, just a crash. Here's what Windows reports:
    Faulting application name: Adobe Encore.exe, version: 6.0.1.13, time stamp: 0x4fb5057e
    Faulting module name: MSVCR100.dll, version: 10.0.40219.1, time stamp: 0x4d5f034a
    Exception code: 0x40000015
    Fault offset: 0x00000000000761c9
    Faulting process id: 0x16d0
    Faulting application start time: 0x01cd83f6b867d78a
    Faulting application path: C:\Program Files\Adobe\Adobe Encore CS6\Adobe Encore.exe
    Faulting module path: C:\Windows\system32\MSVCR100.dll
    Report Id: 47679503-eff0-11e1-9433-446d57c6c61e
    I have been deleting the older projects and their caches to retain disc capacity. But if the current project previews w/o problem and can output a disc image, it must have all it needs as a complete project file, right?

  • Dynamic xfa form - digital signature becomes invalid

    Greetings forum,
    I have question regarding dynamic xfa forms and hope, that you can help me.
    I filled a pdf form based on a dynamic xfa form (with extended rights for Reader user) using iText. When the content of the PDF is changed, the digital signature becomes unvalid, so that the rights are no longer vaild.
    Therefore Adobe Reader (9.0) does not save the PDF. I get the following error message:
    "This document contained certain rights to enable special features in  Adobe Reader. The document has been changed since it was created and these rights are  no longer valid. Please contact the author for the original version of this document."
    I tried the following workaround with itext:
    PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(RESULT), '\0', true);
    (http://1t3xt.info/tutorials/faq.php?branch=faq.itext&node=enabled_form),
    but I doesn't seem to work.
    As a result, the rights are valid but the content of the PDF wasn't changed.
    Is there any workaround for that or does it only work static xfa forms/acroforms?
    Many thanks for you support!
    Irina2000

    Sounds like you tried to fill in a form using Acrobat without the form feature use. Actually iText from what I can see is not using Acrobat, but a third party product. To fill in the form, you simply use the hand tool to move over a form field where the tool will change to an Ibeam or similar pointer tool. Select the field and type in the data. That should not make any changes to the PDF in the sense that has been stated. I have no clue where iText comes into the picture.

  • PDF form with one submit button that prints form and sanves PDF with data with a unique file name

    We have a long medical form that patients can fill out at kiosks as they wait to see a doctor. We want one button so that the patient can print out the form with one click (and finish filling it out by hand if it's not finished already) and the same button click will save the form with a unique file name (using last name, first name, date, and/or email address so that the identity of the person who filled out the form will be readily apparent to anyone who wants to grab the user's responses later). Is Acrobat capable of doing something like this? LiveCycle Designer maybe? And if we continue with the PDF form and add a submit button, is there a way to program the button click to print and to save?
    Thank you in advance of any suggestions that might accomplish this task.

    I am not sure about the print, but it can probably be done -- possibly with a bit of JavaScript. As to the saving of the form, that is not reasonable at a kiosk. You would want the data submitted to a server (particularly with patient data), no e-mail or accessible drive. You can collect the data and put it in a database or import it to the form for printing yourself.

  • How to save a completed form that was created as a dynamic form, with expandable files?

    I have created a dynamic PDF form with expandable fields etc. As this is to be accessible for customers to completed, how can they save a completed copy on their own PC?
    I tried it myself and I receive an error msg stating that I can only save a Blank Copy of this Form:  Data typed into this form will not be saved. Adobe Reader can only save a blank copy of this form.
    How can I create a dynamic form (with expandable fields/flowable layout etc) that allows the applicant to not only complete the form but also, to save a completed copy?

    Thanks! That worked , however I now have an additional issue.
    While the form works in Internet Explorer (I'm using IE11), in that it's viewable, it opens and allows me to save etc) it doesn't work in Google Chrome and I'm getting the below error message:
    Any ideas on why it doesn't display in Chrome and does in IE (I'm using the same PC and I'm using Adobe Reader XI)!
    there are other PDF forms on site that are not dynamic but are fillable, and these are opening!
    Thanks

  • Save File with Field data plus append more information

    I am looking to create a button that will save a button and append the data from a field to it when I save it.  So it would be a click event in javascript and inside the "saveFile" information would append TextField1 and "some text I make up" which would create the saved file name.

    Hi There
    Not sure if you have sorted this.
    But I would achieve this using the trusted function
    create your form as usual
    then create an extra subform and make it in to a save as box (just add a textfield and some text and a button)
    have the save button on the form simply call the saveas subform
    saveas.presence = "visible";
    then the button on the saveas subform have the following code (under click event in javascript) 
    saveas.presence = "hidden";
    event.target.saveasFunc();
    to get this function to work you need to create a .js file using notepad with the following code
    saveasFunc = app.trustedFunction(function () {
    app.beginPriv();
    var text1 = event.target.xfa.resolveNode("form1[0].saveform[0].TextField1[0]").rawValue;
    var text2 = event.target.xfa.resolveNode("form1[0].saveform[0].saveas[0].TextField2[0]").rawValue;
    try {
    event.target.saveAs("/c/forms/" + text1 + " " + text2 + ".pdf");
    } catch (err) {
    app.alert("Error: " + err);
    app.endPriv();
    Obvisously setting the targets correctly and the save directory
    then save this file as any name you like .js e.g. (saveas.js) then place this file in the c:\program files\adobe\acrobat\javascripts, or similar but with reader if using adobe reader.
    If you intend to use this file in reader then you will need to enable extended features in reader on the file using Adobe Acrobat.
    OK the above is only availble where you have the ability to load the .js file in to the correct directory.
    I used it by creating a simple installation file which placed the .js file in teh correct directory and the form ont eh end users computer.
    It may or may not work for you.
    If I can be of any further help let me know.

  • Can't export a PDF with XFA form

    Cannot convert/export a PDF document containing an SFA form - can this program not do this?

    Hi Morin27,
    XFA forms are not regular PDF's but XML files in a PDF shell.
    To create a word file from those files, you first have to flatten the XFA forms by printing as PDF with the Adobe PDF Printer.
    Then you can save using ExportPDF the created static PDF as Word document.
    ~ Pranav

  • Save the PDF Form with Field Name

    HI Guys,
    I have the Requirment in PDF Form.The PDF Form is generated with the Adobe Live Cycle Designer.After generating the PDF Form the user filled the details in the form and save the filled form.while clicking the Save button the default PDF name is displayed in the File name box.The Requirement is iam having one field in the form.The Field name value should needs to displayed in the File name box during saving.Is it possible.Once its possible please let me know.This is needs to be delivered very shortly.
    Thanks & Regards,
    SatheshKumar R

    You can save the form with name generated from a field's value, but therefore you will have to install a folder level script first and design a custom save button in your form.
    You cannot do this with the applications save or save as... buttons, and you also cannot rename a file on submit.
    Here's an example form and a folder level script. (Maybe to complicated fdr newbies)
    http://thelivecycle.blogspot.com/search/label/Save

Maybe you are looking for

  • HOW TO SEND PERSONALIZED EMAILS (WITH SAME MESSAGE) TO ALL ADDRESSES IN THE ADDRESS BOOK - WITH RECIPIENTS SEEING ONLY THEIR NAME BUT NOT WHO ELSE IS GETTING IT

    HOW TO SEND PERSONALIZED EMAILS WITH THE SAME MESSAGE, BUT WITH THE INDIVIDUAL RECIPIENT'S NAME... (OR NAME AND THE EMAIL ADDRESS) TO ALL ADDRESSES IN THE ADDRESS BOOK - WITH RECIPIENTS SEEING ONLY THEIR OWN NAME WITHIN THE BODY OF THE MESSAGE TO THE

  • Problem when invoice in VF01

    Hi I have a problem when create invoice in VF01. I created billing document in VA01 with order type "Rush order" and next in VF01 when I put this number then and choose INVOICE type and press SAVE. Then I got an error "No billing documents were gener

  • ADF wont work with custom LoginModule! Question for Mr. Nimphius!

    ive setup login module as shown in: http://www.oracle.com/technology/products/jdev/howtos/10g/jaassec/index.htm code: actionContext.getHttpServletRequest().isUserInRole("Administrators") works! but i also want this code to work in ADF: appmod.getSess

  • Custom bullet images

    Keynote's themes come with some nice custom bullets, which I would like to appropriate to use on slides not with those themes. There is a "custom image" chooser in the Bullets inspector, but I cannot find where the stock custom bullet images reside o

  • Appending or Replacing data sets in DIAdem

    I was wondering if there was an easy way to take new data points and append them to old data points already loaded into DIAdem.  Similarly I would be interested in just replacing the old data with the new I have a data set I have uploaded from an exc