File name into text field

Is there a way to display the forms file name, into a text field?
Example: The form's file name is "MyForm.1.01.pdf"
I would like to display "MyForm.1.01" in a text field on the form.
If my form is saved and goes up a revision to say "MyForm.1.02"
"MyForm.1.02" is then displayed in the text field.
I was thinking, this could be on the pre open event, so that when the form is saved, it would display the new revision when the form is next opened?
Thanks in advance.

Hi,
The following will get the file name:
this.rawValue = event.target.documentFileName;
I would put this in the docReady event, as this event fires only once, when the form opens.
There is a sample here: https://acrobat.com/#d=ZnxO-dlXXFDS0GvYcQk2NQ
Hope that helps,
Niall
Assure Dynamics

Similar Messages

  • Script to insert file name into keywords field of same file

    Hello,
    search a solution, a Script or another, which writes the file name into keywords field of same file (Metadata: Description/Keywords) in "photoshop", "bridge" or better in "Lightroom" .
    I found this topic from Mike Hale http://www.ps-scripts.com/bb/viewtopic.php?t=1330
    It's possible this script to change this in such a way that it does this:
    "script to insert file name into keywords field of same file"
    Thanks and best greetings
    Wolfgang

    This works in CS2:-
    #target bridge
       if( BridgeTalk.appName == "bridge" ) {
    nameDescription = MenuElement.create("command", "AddName to Description", "at the beginning of Thumbnail");
    nameDescription .onSelect = function () {
         nameToDescription();
    function nameToDescription(){
    var items = app.document.selections;
          for (var i = 0; i < items.length; ++i) {
             var item = items[i];   
    var m = item.synchronousMetadata;
    filenameToDesc(m, item.name.slice(0,-4));
    function filenameToDesc(metadata, Description) {
    var strTmpl = "name2Desc";
    var strUser = Folder.userData.absoluteURI;
    var filTmpl = new File(strUser + "/Adobe/XMP/Metadata Templates/" + strTmpl + ".xmp");
    var fResult = false;
    try
    { if (filTmpl.exists)
    filTmpl.remove();
    fResult = filTmpl.open("w");
    if (fResult) {
    filTmpl.writeln("<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"3.1.2-113\">");
    filTmpl.writeln(" <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">");
    filTmpl.writeln(" <rdf:Description rdf:about=\"\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">");
    filTmpl.writeln("<dc:description>");
    filTmpl.writeln("<rdf:Alt>");
    filTmpl.writeln("<rdf:li xml:lang=\"x-default\">"+Description+"</rdf:li>");
    filTmpl.writeln("</rdf:Alt>");
    filTmpl.writeln("</dc:description>");
    filTmpl.writeln(" </rdf:Description>");
    filTmpl.writeln(" </rdf:RDF>");
    filTmpl.writeln("</x:xmpmeta>");
    fResult = filTmpl.close();
    metadata.applyMetadataTemplate(strTmpl, "replace");
    filTmpl.remove();
    catch(e)
    { fResult = false; }
    return fResult;

  • File name from text field value

    Is it possible to save a file with the value of a Text field?
    Thank you

    Well JSP is server side code and TextBoxes are html which is client side script. To get the value of an html Textbox you either can use Javascript and do it all client side or you can post your form to a JSP or servlet and use request.getParameter("field_name"); to get the value of the form field.
    make sense?
    -S-

  • Insert File Path into Text Field

    I am trying to create a text filed at the bottom of a form document that will automatically input the file path (e.g.. C\:Folder\File) of the document itself after the document is saved.  I've looked at a few Scripts but nothing seems to be working.  I'm assuming it will look something like this on the "postSave" option:
    this.rawValue = event.target.path.replace(event.target.documentFileName, "");
    I am a very novice programmer so I have no idea if this is even close to right.

    Apparently some of my search parameters were off.  This question has already been answered before.  If anyone comes looking here, this is a link to the page with the answer.
    http://forums.adobe.com/message/4007317#4007317
    Enjoy.
    FYI: here is the code I used for the text field.
    Inspection.TextPage.Bottom.End.Directions.File::preSave - (JavaScript, client)
    this.rawValue = event.target.path

  • Importing text file (with file names) into Automator.. is it possible?

    Hello all,
    I have been working with Windows Batch files for my line of work. I have a couple of file names in a text file (a column), which I want to copy from one folder of one hdd to another folder on a different hdd. I have been trying to do this kind of work with a Mac. I already know how you copy and rename files in automator (which isn't difficult, of course) but you have to 'select' the files in the finder first (with get specified items).
    But the only way i see that you can specify items is by selecting them... is there a way to import a text file with all the file names instead of selecting all the file names manually?
    or is there an AppleScript alternative which I can use to import the text file (or just copy into applescript) and run before the query's of copying and renaming the files? I am kind of new to Apple programming.
    The text file looks like this:
    image1.jpg
    image2.jpg
    etc..
    so there has to be a command to: 'goto' a specific folder as well.
    Thanks in advance!

    You can import text files, but if they are just names you will need an additional action to add the source folder path. A *Run AppleScript* action can be used, for example:
    Tested workflow:
    1) *Ask for Finder Items* {Type: files } -- choose the text file containing the names
    2) *Combine Text Files* -- this gets the text file contents
    3) *Filter Paragraphs* { return paragraphs that are not empty } -- skip blank lines
    4) *Run AppleScript* -- copy and paste the following script:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 680; height: 340px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into an Automator 'Run AppleScript' action">
    on run {input, parameters} -- add folder path
    add the specified folder path to a list of file names
    input: a list of text items (the file names)
    output: a list of file paths (aliases)
    set output to {}
    set SkippedItems to {} -- this will be a list of skipped items (errors)
    set SourceFolder to (choose folder with prompt "Choose the folder containing the file names") as text -- this is the folder containing the names
    repeat with AnItem in the input -- step through each name in the input
    try
    set AnItem to SourceFolder & AnItem -- add the prefix
    set the end of the output to (AnItem as alias) -- test
    on error number ErrorNumber -- oops
    set ErrorNumber to ("  (" & ErrorNumber as text) & ")" -- add the specific error number
    set the end of SkippedItems to (AnItem as text) & ErrorNumber
    end try
    end repeat
    ShowSkippedAlert for SkippedItems
    return the output -- pass the result(s) to the next action
    end run
    to ShowSkippedAlert for SkippedItems
    show an alert dialog for any items skipped, with the option to cancel the workflow
    parameters - SkippedItems [list]: the items skipped
    returns nothing
    if SkippedItems is not {} then
    set {AlertText, TheCount} to {"Error with AppleScript action", count SkippedItems}
    if TheCount is greater than 1 then
    set theMessage to (TheCount as text) & space & " items were skipped:"
    else
    set theMessage to "1 " & " item was skipped:"
    end if
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
    set {SkippedItems, AppleScript's text item delimiters} to {SkippedItems as text, TempTID}
    if button returned of (display alert AlertText message (theMessage & return & SkippedItems) ¬
    alternate button "Cancel" default button "OK") is "Cancel" then error number -128
    end if
    return
    end ShowSkippedAlert
    </pre>
    5) *Copy Finder Items* { To: _your external drive_ }

  • Get the file name into a Odi variable

    Hi,
    I need to get the file name into odi variable like ..A/ETC/file.txt
    For eg.the filename file.txt should get store in a variable.
    Then i want to compare the file name stored in the variable with some other value.
    Please suggest.
    Thanks.

    in package,
    declare the variable, then evaluate it with another variable, generally using # syntax
    if the variable is date type, suggest to use : syntax, because # will treat the variable value as text value
    in loadplan
    use case when syntax,

  • File name into document

    Is there a way to create a master doc page that automatically imports the current document file name into a desired location?

    Perhaps a text variable of the filename on the master? Look this up in the help.
    Mike

  • Set file names to text

    I'm looking for an action that will take files as input and output the file names as text. Does anyone know of an included or free action to do this?
    Message was edited by: KatieS1975

    You can use AppleScript's text item delimiters to add some text between the (text) items when converting the input list to text:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on run {input, parameters} -- convert the input list to text using the specified delimiter
    try
    set tempTID to AppleScript's text item delimiters -- save the current delimiter
    set AppleScript's text item delimiters to return -- change the delimiting text as desired
    set the output to the input as text
    set AppleScript's text item delimiters to tempTID
    on error errorMessage number errorNumber -- restore the original delimiter before passing on the error
    set AppleScript's text item delimiters to tempTID
    error errMessage number errorNumber
    end try
    return the output
    end run
    </pre>

  • Load Source File Names into Recordset Object

    Hi,
    I have a folder with abc.txt, xyz.txt, pqr.txt etc files.
    My requirement is to load all the file names into a Record Set which I need to use in data flow.  I think I need to use For each loop container with Enumerator as 'Foreach File Enumerator' and in the variable mappings I have added a variable name
    to get the file name. But I have stuck how to add these file names to a Record Set target. Please help me.
    Thanks.

    Hi Amaya14,
    Go these this link Click Here
    Thanks

  • Sharepoint Workflow : how to get document full path + file name into variable?

    Hi,
    Anybody knows how to get document full path + file name into a variable in Sharepoint 2010 workflow?
    Example http://sp1:80/InvoiceQueue/Shared Documents/123.pdf
    I am using List Workflow which links to a document library.

    Hi SAMSUNG,
    According to your description, my understanding is that you want to get the full path of a document in a list workflow.
    You can set the variable to the Enconded Absolute URL of the document. The screenshot is my testing. In my testing (in the red area), when the title of a document was equal to the tile of the current item, set a variable to the Enconded Absolute URL of the
    document. I used ‘Log to history list’ to check the value of the variable in Workflow History .
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to copy paste a table structure from word document into Text Field [field format Rich Text]

    In our current implementation we have a Blank page with Text Field [field format Rich Text] on generated PDF Document.
    Once the PDF document is generated, user can copy paste content form any word/rtf document to into the Text Field.
    Pasted content retains all text formatting [Bold, Italic, Underline, Indentation] except the Table format. Text Field is removing table metadata from the content and converting it into plant text.
    Is there anyway to copy paste table structure as it is from word document into Text Field?

    Hi,
    I don't think you can! While you can paste formatted text into the rich text field, the table metadata means nothing to the textfield.
    Niall

  • Linux file name into ODI variable

    Hello All,
    I have a situation where we have files in one directory in linux ,I want to import the file name into a ODI variable.
    Ex : A_B_C_2014_01_20.zip (inside this zip file are the flat files with data) is the file name in /u02/source_files location , i want this into a ODI variable and once the data loading is complete ,i want to log it saying
    A_B_C_2014_01_20.zip complete
    A_B_C_2014_01_21.zip complete.
    So my other shell script will look for the complete flag and copy the next file into the ODI pick up location.In this case I need to pick up A_B_C_2014_01_22.zip and start the data loading.
    How do i implement this functionality in ODI. Please let me know.

    Issue was due to a syntax error. Case closed.
    Thanks!
    -OS

  • Method for quickly putting file names into IPTC core description?

    I would like to put the file names into the IPTC core description. The files are all named differently .Is there a way to batch this or any other way of automatically including it so that I don't have to do each file separately? Or perhaps there is a plug in?
    I am using PS5/ bridge on a mac.

    You only need a script… not a plug-in to do this. Search the bridge scripting forum as Im sure Paul has posted several variations of scripts that do this…

  • I am creating a request for proposal form and I need to add a commission structure field.  I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

      I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

    It sounds like what you are trying to do is edit the choices in a likert field to something other than the default radio button. This is not something that you can do in Formscentral at this time.
    Andrew

  • Yoga 13 MSIE10 can't type into text fields

    New machine Feb 2013 used exclusively in laptop mode. Has been great overall but right out of the box I could not type text into any form fields using Internet Explorer 10. What an intro to Windows 8! Discovered I can type text in notepad, then copy and paste it into fields but cannot enter it directly. This was happening with the factory installed software so if it's a third party app conflict it's one that's original equipment. Thankfully Chrome works fine, but sometimes I need to use MSIE and am quickly reminded why I can't.
    Google and Lenovo forums are mum on this subject. Some suggestions pointed to SFC /scannow, which came up with a litany of things it couldn't fix. Enhanced protected mode in MSIE also did not help. Didn't appear possible to reinstall MSIE (where's the DOJ when you need them?) What's next?  Thank you all for your assistance.

    hi dserdu,
    Welcome to the Forums.
    Are you having this issue on the desktop version of I.E. or the Metro version?
      - if the issue only happens on the metro IE, try to open the Desktop I.E. > press ALT+T > choose Internet options. On the Internet Options, go to the Programs Tab, set I.E. to Always and check the box "Open Internet Explorer tiles on the desktop"
    - Link to picture
    Alternatively, if the issue is compatibility between the website and the I.E. versions, you can run I.E. 10 in compatibility mode or on a lower version (i.e. I.E. 9, I.E. 8., ...etc.). To do this:
    1. Open the Desktop I.E. and press F12
    2. On the developer tools, choose Browser Mode IE 10 and choose an I.E. version (i.e. IE 9)
     - Link to picture
    3. When dnoe, press F12 again and observe if you can now type into text fields.
    Let me know your findings
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

Maybe you are looking for

  • Time evaluation to generate future quotas

    Hi Gurus, We must generate absence quotas for the future(year 2015) cause personnel must request absences for next year. We run time evaluation till 01/01/2015 to generate quotas: 2015 quotas were generated correctly. If we run time evaluation till d

  • How do I insert/update a TOC in the Bookmap?

    Hi all, I am rather stumped, how do I use a bookmap to create a complete PDF with TOC in FM9? Everybody (well, almost..) wants a TOC but I found nothing in the help and did not succeed trying for myself. It seems that I would need to insert a TOC in

  • I want to learn to build a site like THIS (link enclosed)

    See this site? http://www.haefnerphoto.com/ Where do I go to learn to build a "liquid GUI" like this? I am not a beginner in Flash or website construction, if it's helpful to know that. However, I would like to take things to a higher level. Thank yo

  • How to perform commission recalculation in OIC

    Hi All, I'm using 11i OIC. I need to perform a commission recalculation for one of the employee, for a particular period. Any idea how to do this. Is there any conc.pgm doing this or do we need to do this manually. Any pointers will be of much helpl

  • Is my early 2006 iMac 32-bit or 64-bit?

    I ask because Mactracker says that it's 32-bit, so does that mean that Snow Leopard would be a waste of time? I thought the whole point was that it's 64-bit, but if it runs in 32-bit mode only then I can't see the performance increase being anything