XFA form with button to save the file with unique file name

Is it possible to save a file with a unique file name by using the data that a user has entered (name, e.g.) that fires when the user clicks a button print? Attached is a file reference.

Hello

Yes it works here using your latest form and the modified .js:

You have created the folder 'HSSSave '?

Also, make sure the .js file is in the correct application folder and restart Acrobat:

Hope get you it working (and when you do you can include a timestamp or timestamp in the name of file; as the script automatically replaces an existing file with the name of TEA).

N.

Tags: Adobe LiveCycle

Similar Questions

  • How does NOT save a file name extension?

    Hey everybody!

    I have a script for Photoshop > > extension a bit > > I click on a button and the script save the .jpg file into a png (with extra stuff "of course") file in the same folder.

    Works like a charm...

    But when it comes to the original file name: exemple.jpg

    I get this png file name: example.jpg.png

    I save the file name and path with this code:

    filePath = app.activeDocument.path + '/' + app.activeDocument.name; + '.png';
    

    The goal is to get rid of the section '.jpg' the new file name.

    I tried to save file name in a variable and then reduce the number of characters or even save it without the extension, but no luck.

    any ideas? !

    Thank you!

    var name = app.activeDocument.name;
    If (Name.indexOf(".")! = - 1) Name = Name.substr (0, Name.lastIndexOf("."));
    filePath = app.activeDocument.path + "/" + Name + ".png";

  • I can't download Firefox. When I hit the download button the pop-up box asking me if I want to open or save the file disappears without me click an option.

    I tried to download Firefox without success.
    I hit the download button and, normally, a pop-up window appears asking me to open or save the file. An empty box appears briefly and then disappears.
    The problem may be with Internet Explorer 6.
    However, I tried to update to IE 8 and the same problem above occurs on the Microsoft Web site.
    I think that there is a little lack of IE 6.
    Any ideas?
    Thank you
    Sandra

    Thank you.
    In the end I had someone send me the file installation and it worked.
    Thanks for your time.

  • where to save the files under options the file name is duplicated how to remove an additional folder with the same name

    Under Options in Firefox, I clicked on save the files under downloads, but the file name twice and an additional file with the same name is created in the folder, i.e.:

    G:\Akbar's Songs\HAMARA DOWNLOADS\HAMARA FORUMS DOWNLOADS FORUMS

    As you can see the file repeats, how can I fix it?

    Also the music files, I download from a site of downloads as a WinRar file and I need to open it. Y at - it an option where the file opens automatically in the folder I chose?

    Thanks a lot for your help.

    Hi Akush, when you install 7 - zip, make itself the default application to open .zip and .rar files. So if you double click on the .rar file, it should open in 7 - zip. If you prefer to decompress immediately, right click the file and look for new 7 - zip items in the menu. I can't think of a way to do this automatically, however.

  • Save the file with the same name

    How to change the script to save the file with the same name?


    
    
    
    
    //SaveforWebSP.jsx  
    
    
    
    //Save a fixed width image with a size constraint in its original folder  
    
    
     
     
    
    
    
    var docRef = activeDocument;  
    
    
    
    var outputFolder = docRef.path;  
    
    
     
     
    
    
    
    NamesaveRef = new File( outputFolder + "/reference.jpg" );  
    
    
    
    var NewfileRef = new File( NamesaveRef )  
    
    
     
     
    
    
    
    // quality/size constraints  
    
    
    
    var w = 1920; // new file width  
    
    
    
    var MaxSz =  361440; // max. 360Kb  
    
    
    
    var Qlt = 100; // initial quality 100  
    
    
    
    var x = 1; // decreasing step  
    
    
     
     
    
    
    
    // resize the image to the right width  
    
    
    
    docRef.resizeImage(UnitValue(w,"px"),null,100,ResampleMethod.BICUBICSHARPER);  
    
    
     
     
    
    
    
    // Perform the first SaveForWeb Operation  
    
    
    
    ExpWeb(NewfileRef, Qlt);  
    
    
     
     
    
    
    
    // Keep trying to save the file with max. Qlt, but under MaxSz 
     
    
    
    
    while (NewfileRef.length > MaxSz)  
    
    
    
    {  
    
    
          
    Qlt = Qlt - x;  
    
    
          
    NewfileRef = new File( NewfileRef );
     
    
    
          
    NewfileRef.remove();  
    
    
          
    ExpWeb(NewfileRef, Qlt);  // Perform a new SaveForWeb Operation, with slightly lower Qlt  
    
    
             
    if (Qlt <= 40) {  
    
    
               
    alert("The file can't be saved with the desired size AND quality.");  
    
    
               
    break  // break the loop whenever the quality is as low as 50 (this shouldn't need to happen)  
    
    
             
    }  
    
    
    
    }  
    
    
     
     
    
    
    
    var FileSz = NewfileRef.length/1024;  
    
    
    
    FileSz = Math.round(FileSz);  
    
    
     
     
    
    
    
    // close the original file without saving  
    
    
    
    activeDocument.close(SaveOptions.DONOTSAVECHANGES);  
    
    
     
     
    
    
    
    // SaveForWeb Export, with the desired constraints and parameters  
    
    
    
    function ExpWeb(FileNm, Qlt)  
    
    
    
    {  
    
    
          
    var options = new ExportOptionsSaveForWeb();  
    
    
          
    options.quality = Qlt;   // Start with highest quality (biggest file).  
    
    
          
    options.format = SaveDocumentType.JPEG;   // Save Format for the file  
    
    
          
    docRef.exportDocument(File(FileNm), ExportType.SAVEFORWEB, options);  
    
    
    
    } 
    
    
    
    
    

    Change of line 25 to:

     var docName = docRef.name.split('.')[0];
     NamesaveRef = new File( outputFolder + "/"+docName +".jpg");
    
  • Save the file with the annotation and highlighting

    Hello world

    I used to save the file with the annotation and emphasize locally.

    With the new update: Version 2015.009.20079, I'm not able to do as much as Adobe does not have the location of the local file.

    Why is it like that? Is there a setting that is required to restore the previous behavior of the program?

    Concerning

    Mohammed

    Hi Mohammed,.

    In this case you may need to check the configuration of this application settings or set Acrobat Reader preferences.

    Thank you

    Abhishek

  • Is it possible to change the file name given to attachments in an email button?

    Whenever I click on the standard e-mail button, I get an attachment with random alpha and numeric characters for the name of the file.  Is it possible to change the names of files to match a data field in the form or start with something that I choose?

    Thank you

    Judy

    Hi RudyLou36,

    While displaying the form in the TAB overview of LC Designer, you will always get the unwanted characters as the name of the file. Save the file and open it in Acrobat or Reader.

    You will not be able to change the name of file unless you save the file first. Here (http://forums.adobe.com/thread/462681) is an example of a number of ways to deal with parts of the email programmatically.

    Kind regards

    Rous

  • Save the file automatically in a default folder

    Hello

    I have a problem with the selection of a default directory to save the file (write on the worksheet). I want WriteToSpreadsheet automatically as a NEW FILE without inviting the user to click on the Ok button every time on "save file as" dialog box.

    Please find the attached photo to find the code.

    Analogy: I just want the program automatically save the file with a new file name each loop without pop up a dialog to the user to confirm the action.

    Thank you!

    Aerts

    Well, you already have the constant where he must go by default data.  You can just use it.

    Another option would be to create a Subvi to only call the file dialog box when the first call and record the path of the folder in feedback.  Then the selected folder has only one in need first.

    Probably the best option would be to have the user to select the folder where the program for the first time and this way through the while loop.

  • Error message: to restore enough memory for programs running, save the file and then close or restart all programs

    It said "restore enough memory for programs to operate correctly, save the file and then close or restart all open programs".

    I changed the size of paging and says always the same, I have 1.5 GB free RAM, but don't know how to find or what to do 'virtual memory '.  Have windows 7.

    I started the safemode and run also memory dignostics and nothing found, please help, cannot afford to take a shop or get a new computer, I'm using another pc.

    I was recommended to download and. Run 'hitmanpro3'... but if anyone has had this problem and solved it or know how, please help!

    Thank you

    Hello

    Please contact Microsoft Community.

    I understand that you receive an error related to the lack of virtual memory. This error message appears when running any program that requires more memory your computer has, or running in the background, Windows manages the system memory by saving the data between physical memory and virtual memory. In order to help you better, please provide us with the following information:

    What is the brand and model of your computer?

    I suggest you follow the methods and check them off below if this solves the problem.

    Method 1: Clean boot

    A clean boot is a troubleshooting technique that allows you to get the computer facing up and running so that you can determine what elements of the normal starting procedure problems.

    How to perform a clean boot in Windows

    http://support.Microsoft.com/kb/929135

    Note: Once you are done with the clean boot, follow the section How do I reset the computer to start as usual after a clean boot troubleshooting under more information in the article to put your computer to normal startup.

    Method 2: Prevention of insufficient memory problems

    Follow the steps mentioned in the link and the check, it solves the problem. Follow the evolution of the size of the virtual memory section

    http://Windows.Microsoft.com/en-us/Windows/preventing-low-memory-problems#1TC=Windows-7

    Method 3: Virus Scan

    Microsoft Safety Scanner is a free burner that can be used to analyze a system for computer viruses and other forms of malware.

    Microsoft safety scanner

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Warning: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Additional information: Windows optimize for better performance

    Hope this information helps. Response with status so that we can help you.

  • No Save/Close button to save the Javascript in the built-in Editor

    I downloaded the trial version and play with the features.  I am changing a form.  I added a button.  In the Actions tab, I selected "Execute Javascript."  There is a button 'Add' that calls the built-in Javascript Editor.  It has a multi-line text box to enter the script.  However, there is no button to save the code.  All I have is the Red 'X' button to close the window without saving changes.

    It is the trial version on Windows 8.1 XI machine.

    Any help will be appreciated.  Thank you.

    The Editor window seems too big? Is anything else in Acrobat size

    incorrectly? This could be linked to the "resolution of the screen grid.

    setting. Open Acrobat preferences, then go to the category "General".

    and change the setting of "Scale for the resolution of the screen" to 100%. After

    Restart Acrobat, the Editor window looks different?

  • Save the files downloaded in a place

    Let's say I want to save a file in Documents-> files. I have a right-click on the link and select "download linked file under. But it shows me that the Documents folder, but not no matter what option to go to the Document folder and select the files. I'm on OS X El Capitan and Safari 9.1. Please check the picture attached is what I'm trying to ask: -.

    Click on the small arrow pointing down to the right of the file name. It will open an expansion record box with the ability to see other folders.

  • I use to manage my DSL modem via an ip address. When I enter FF8 I wonder where to save the file. Why and how can I prevent the FF8 to do this?

    I use to manage my DSL modem via an ip address. When I enter FF8 I wonder where to save the file. Why and how can I prevent the FF8 to do this?

    And now, whenever I'm in an ip address that I wonder if I want to download the file.

    This happens when the modem server does not send the file in text/html, but with a different MIME type.

    I tried adding index.html in the event that the server can send this file as text/html.

    If your DSL modem has a support Web site, then you can try asking it there advice on how to configure the server modem.

  • Qosmio F20-136: scanned TV guide channel - save the file so you can recharge?

    I have a Qosmio F20 - 136 running XP Media Center. My question is does anyone know the name of the file that has the channels scanned so that if I do a re scan and don't get all channels from the list, because of my reception antenna I can re - load the file on the system with a complete list?

    What happens, if I make a new analysis of the channels of television at home I don't get that nearly 20 tv channels, but if I take the laptop to work, where I guess it's a better reception from the transmitter, I travel 35 channels found. I would like to save the file when its 35 channels scanned and have the opportunity to replace it in the directory, if I do a re scan at home.

    Thank you.

    Hello Mike

    Your validation list is very impressive and you should be an expert Qosmio. ;)
    I have F20 too and I also noticed that I can't watch all the channels available on cable TELEVISION here at home.

    Have you already found something interesting about it?

  • How to incorporate the timestamp and file name automatically select and save the file dialog?

    Hello

    I try to incorporate the name of the file that is the registration of the end user with the timestamp in the selected and save file dialog box. Can you help me?

    Thank you

    Hi Mike227,

    I couldn't find a way to immediately make the bat. I guess you need to mess with ActiveX to do. I found an msdn page that could help with this.

    Have you considered simply concatenating the name of the file and the time stamp with a path of the file and save the file when you create it, without inviting the user?

  • 1 intermittent start problem & 2 IE8 save as in the file name.

    I had problems with HP Pavillion that running Win XP 32 bit Media cntr. Ed. 2005 SP3 via corrupt C: drive & possibly / likely some files of the operating system. I've never had a backup of the operating system & when I needed it to drive or some files were corrupted eventually and I find that it's too late to get a replacement for my installation copy (thanks HP, no support for 6 year old computer!?) Idiots!), so I am facing these problems of weird litle sometimes OK to start, sometimes begin with some errors and inevitable auto restart. major problem seems to be the MsMpEng.exe file (cannot read the memory) or corrupted file I think because I have replaced the drive & brought the old image on the drive of naw (probably with the errors built in) I have looked for ways to replace the file, can't find any info. 70% of the time it starts ok, others 30 is a pain. More recently, I have also saved Bing horizons for some time and use IE v8.0.6 (updated), now when I "save under" Save as file name box has "hprichbg" in there instead of the actual name of the image, it is an image that I save with IE8 another photo & video & process progs are not affected, so I think it's a problem IE or HP software (IE (: something turned evil in a .dll file or so) I appreciate the expertise of everyone on these forums. Thanks, Ronnie...

    It's funny - I do not have Windows Defender installed as the Microsoft support engineer suggested (and I never install) but I do not have the MsMpEng.exe running all the time.  How can this be?  I guess it could be, but I do not wish to install Windows Defender to find out.

    MsMpEng.exe is part of Microsoft Security Essentials (MSE).

    If it seems that it is somehow afflicted, I would just uninstall the whole shebang (MSE), reboot without it and see the side of things..., fix any other matter at that time and when things are cleaned and running smoothly, reinstall MSE.  Yo udon can't want to get in the way of your other efforts if she is distressed.

    What are these 'some mistakes' you get sometimes?  Don't forget, we are unable to see your screen.

    Because the Microsoft Answers forum does not have any kind of information system request when a new question is asked, we know very litte on your system.  Not knowing the basic information a problem prolongs the frustration and the agony of these issues.

    Thank you MS Answers, allowing the resolution of simple problems as frustrating and a lot of time as possible.

    Provide information on your system, the better you can:

    Your system's disks IDE or SATA drives?

    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..

    The afflicted system has a working CD/DVD (internal or external) drive?

    You have a genuine XP installation CD bootable, which is the same Service as your installed Service Pack (this is not the same as any recovery CD provided with your system)?

    Do you see that you think not you should see and when you see it?

    What do not you think that you should see?

    Now make some clarifications:

    Click Start, run and enter in the box:

    Msinfo32

    Click OK, and when the system info summary appears, click on edit, select all (Ctrl-A), copy (Ctrl-C) and paste (Ctrl-V) the information back here.

    For information about video drivers, expand components, click view, click on edit, select all, copy and then paste the information here.

    There will be some personal information (such as the user name and the name of the system), and anything that turns information private for you, simply delete the pasted information.

    This will minimize back Q & A and eliminate guesswork.

Maybe you are looking for

  • MAILTO OPENS A NAVIGATION PAGE ON OUTLOOK...

    I just changed the associated application for MAILTO to OUTLOOK (2007). When I try to send a link by e-mail, he opens a new PERSPECTIVE and tries to navigate? Then, I got the message of THE PAGE WEB BROWSING has BEEN CANCELLED

  • OR-Motion PXI Card Device Status = does not

    I can't connect with my motion NI PXI-7358 Controller card.  The general tab in MAX for the map shows that "Device status" = "does not" see the attachment.  I've not mapped and matched the remote device.  I also removed and re-installed PXI card with

  • HP Envy 17-j009ed, missing driver

    Hello I'm missing a driver for a PCI device (PCI-bus 9, device 0, function 0) HP Envy 17-j009ed Windows 7 x 64 Can someone help me with the driver? Best regards Nick

  • HP Pavilion dv7-2185DX should be wiped

    so I let someone borrow my cell phone and they got a nasty virus, hacking FBI sending us $ 200 and we will open your computer.  so I got rid of him and I want to restore the computer to as when I bought it, plus I think selling the computer is anothe

  • Activate windows 8 after factory reset

    Recently, I bought an SSD to speed up my computer. I used a program to extract the product code and backed up my files. Then did a factory reset on windows 8 and transferred all the data of my SSD, when windows asks for the code I entered in the code