Auto date entry in text field not working

I have a text field named tdate, which is read-only and visible. I want Acrobat XI Pro to insert today's date when the form is opened. Here's what I have:
javascript code:
var f = this.getField("tdate");
if (!f.value) f.value = util.printd ("mmmm d, yyyy", new Date());
This code is inserted in Page properties / Actions /Page Open / run a JavaScript
nothing happens when the page is opened.
I have also tried, unsuccessfully, to enter this JavaScript code within the form field actions (mouse up), and nothing happens. I see from the forum comments that apparently this is successful for other users, but nothing seems to fill this text field. What am I doing wrong?
Bill

Thanks for your reply. I started to wonder whether or not the current field
that I created had somehow been corrupted due to my fooling around so I
deleted the field re-created it (and also randomly JavaScript debugger and
deleted the code there) and now the current date appears in the text field.
I wonder why Adobe doesn't simply allow the user to insert fields where the
field is filled with either the current date or the current time instead of
forcing the user to enter some JavaScript code. Not all users of Acrobat
professional want to get that involved.
Regards,
  Bill
Bill McLachlan

Similar Messages

  • Get the value from dropdown list (selectedIndex) and text field -- not working

    Hi All,
    I am trying to find and change by the values selected by user using dropdown and text field. Here is the code.
    ChangeRevDetails();
    function ChangeRevDetails(){
              var myDialog = app.dialogs.add({name:"Enter copyright information"});
    //    var monthlist = col1.dropdowns.add('myList', undefined, myList);
              var col1 = myDialog.dialogColumns.add();
              var col2 = myDialog.dialogColumns.add();
        col1.staticTexts.add({staticLabel:"Month:"});
              col1.staticTexts.add({staticLabel:"Year:"});
        col1.staticTexts.add({staticLabel:"Rev. no.:"});
        var myList = [ "January", "February",  "March", "April", "March", "April", "May", "June", "July", "August", "Sepetember", "October", "November", "December" ];
         var myMonth = col2.dropdowns.add({stringList:myList, selectedIndex:0, minWidth:100});//{minWidth:100});
         var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});  
         var MyRev = col2.textEditboxes.add({minWidth:100});
        var RevMonth = (myList [myMonth.selectedIndex]);
        var RevYear = myYear.editContents;
        var RevNumber = MyRev.editContents;
        var RevToReplace1 = RevMonth +", "+ RevYear;
        var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
        var myResult = myDialog.show();
            if(myYear.editContents == "") //entry is ""
            alert("Please enter some text into the contents field.");
            ChangeRevDetails();
            else if(myResult == true) //user entered datas
                alert (RevMonth);
                alert (RevYear);
                alert (RevNumber);
                alert (RevToReplace1);
                alert (RevToReplace2);
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
                // grep find/change
                app.findGrepPreferences = app.changeGrepPreferences = null;      
                app.findGrepPreferences.findWhat = "[\\l\\u]+?\\s?\\d{4},?\\s+[\\l\\u]+\\.*\\s+\\d+";
                app.findGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.changeGrepPreferences.changeTo = RevToReplace1;
                app.changeGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.activeDocument.changeGrep();
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
        else //implies user clicked cancel
        myDialog.destroy();
    The problem is, it is not taking the value which the user selects from the dropdown and the text field. It takes the default value as "January" and the year is "2013" as both of these values are given as selectedIndex:0 and editContents:"2013". I have compared the coding with some other working scripts as well, but it is not working. I have added several alert boxes to check the value we get.
    Also, the find and change is also not working. Please help me on this. Thanks.
    Regards,
    Muthuraj. D

    Change the order for dialogresults:
    var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});  
    var MyRev = col2.textEditboxes.add({minWidth:100});
    var myResult = myDialog.show();
    if(myYear.editContents == "") //entry is ""
    alert("Please enter some text into the contents field.");
    ChangeRevDetails();
    else if(myResult == true) //user entered datas
    var RevMonth = (myList [myMonth.selectedIndex]);
    var RevYear = myYear.editContents;
    var RevNumber = MyRev.editContents;
    var RevToReplace1 = RevMonth +", "+ RevYear;
    var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
    didn't have a look for the find change problem

  • Custom Metadata Text Field not working

    Hi everyone-
    I'm trying to create a Metadata layout the will be a template for all of the editors in my company.  I've created a New Schema and added a few custom text fields.  The problem is I can't add anything to the text fields, as they are greyed out and unusable (see far right in image).  Any ideas of why this might be happening?
    Thanks,
    -Mark

    Hey Jim-
    I wanted to follow up on this with you.  I ended up creating a "template" project for our filmers to use so we all log our footage the same way.  I ended up using an existing schema and adding new, custom text fields.  I did a few tests on my system and everything seemed to be working fine.  Our filmers are now on a shoot and are beginning to log their footage with our "template".  When they enter data in the custom text fields, they end up getting a crash about every 4-6 clips.  When they reload their project, none of the logged files have saved in the bin.  Any thoughts on why this is happening?  Our filmers are using the new MBP. 
    One other note.. when they enter text into the  "description" and other text fields that are not Custom Fields, everything seems to be OK.
    Your help / insight would be greatly appreciated! 
    Thanks in advance!
    -Mark

  • Cut and paste from text field not working in early access JRE 1.90-ea-b38

    I noticed that cut and paste no longer works with JRE 1.9 on Windows 7 professional. Anyone else having that problem?
    I haven't posted a bug reports since the Sun days, is there still a place to post bugs?

    Which advice didn't I follow?1) How to write a simple SSCCE.
    Again why do you have a custom TableModel? It is not required for the SSCCE and in fact is not required for your real program.
    Why is KeyListener code included. It has notthing to do with your question.
    2) I also suggested you add the mouse listener to the text area. Well, the text area is defined in the popup dialog, not the editor in my original SSCCE. So why have you made the code so complex by defining a second text area?
    I did look at your sample program (the table with pop-up menu appearing on right-click) That was only a wild guess because you didn't respond the second time when I asked you why the mouse listener wasn't added to the text area.

  • Auto-tabbing between input text fields in AS3

    Hello-
    I am having some trouble figuring out how to work auto-tabbing between input text fields when a user inputs a character. I have a series of text boxes with maxChar set to 1, and when the user inputs a character, I would like it to auto-tab to the next one. I'm putting together a crossword-style banner ad so the auto-tabbing will help tremendously.  All the input text fields are instanced on the stage as input1, input2, etc; not called in from a custom class.  Also, I've been working with AS3 for about 2 weeks lol!
    thanks!

    Awesome, thank you, that works nicely! Now I need to figure out how to capture individual keyCodes for each input and then come up with a conditional to check for right or wrong answers. I have a "check your answers" button all set up. I think I am almost there, possibly a syntax hiccup for me. Any advice on how to do that would be appreciated.

  • Text Fields Not Showing in Design or Live View

    Hello Everyone,
    I have run into a problem trying to create a simple contact form through Dreamweaver CS6.  I have two text fields for Name & Email, and 1 text area for Comments.  The issue I am running into is that the text fields are not showing in Design or Live view.  I have set-up all variables required for the server for the form to work... but that should not have any effect on the text field showing...  I tried uploading my contact page with the same result of no text fields showing...
    What is really laughable is that the "text area" I placed in my form for Comments shows up in Design & Live view just fine.  I am thinking that I am missing something, but just do not know what exactly.  The form is styled through CSS.
    Here is the form code:
         <div id="CRDForm">
           <form action="http://www.sweetformimi.com/formmail/formmail.php" method="post" enctype="application/x-www-form-urlencoded" name="contact" target="_self" id="contact">
        <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">
        <input type="hidden" name="recipients" value="[email protected]" />
        <input type="hidden" name="subject" value="Contact Form" />
             <label><p>Your Full Name
               <input name="Name" type="text" id="Name" size="40" /></p>
             </label>
             <label><p>Email
             <input name="email" type="text" accesskey="2" tabindex="2" title="Email" value="Email"></p>
             </label>
             <label>Comments<br />
             <textarea name="comments" cols="40" rows="10" accesskey="3" tabindex="3" title="Comments"></textarea>
             </label>
             <input name="submit" type="submit" accesskey="4" tabindex="4" title="submit" value="submit">
           </form>
        </div>
    Are there other variables I should be thinking about in the rest of my site?  I am using a fluid grid layout.  I have CSS for desktop, tablet, and phone devices.  I also have a primary CSS file that imports all three.  The sites structure was done by using <header>, <article>, <footer>, and of course <div> tags. 
    Has anyone ever experienced the "text fields" not showing up before? Is it a simple fix as reinstalling Dreamweaver CS6?  Finally, another thing I should mention is that I did have a previous version of Dreamweaver on my comp, which was CS3.  I did not uninstall that before installing the newer version.  I assumed (and I could be wrong here) that it would automatically replace the older version.
    I apoligize for it being long winded, but I am looking for some help on this issue...
    Thank You

    Hey thank you osgood for the reply!
    When I look at code for long hours it sort of blurs together, and I miss things... I think that happens to the most of us
    Ya I found what was blocking my text fields in my desktop.css
    I primarily work through code view, and currently working on quite a few projects kind of makes your eyes miss the small errors.
    Thanks again!

  • Text Field not shown in Adobe 6.0 and 7.0

    I created a simple pdf file with a text field in Adobe LiveCycle Designer 7.0. After I fill the text field with a third party tool in a program, the field's value dosen't appear in Adobe Professional 7.0 while appears in Adobe Professional 6.0. What is a problem? Does some settings will affect this case?
    Thanks for any answer...

    Thanks for your reply.
    I had another test recently.
    I save a pdf as a "compatible with 6.0" type which is created by Adobe Designer 7.0. After I opened it in 6.0 and filled the text field, it worked well. But when I opened it in 7.0, all the value was lost.
    Is 7.0 not well compatible with 6.0? What could I do if I created pdf with 7.0 and the users use 6.0 (you know, I can't request all the users to use new 7.0)?
    Any advice will be appreciated.

  • AT END OF for char field not working

    Hi all,
    AT END OF (char field) not working,
    I sorted the itab and also avoid the stars(*) problem also, but its not working.
    Thanks in advance.
    Edited by: Vijay Babu Dudla on Jan 28, 2009 11:01 PM

    Hi, Niranjan
    Test the following Sample Code it will solve out your Problem,
    " This is not working properly right now.
    TYPES: BEGIN OF t_name,
      name1(10),  " if You Change Cut the Name2 from the 2nd line and past it up to the Name one will work fine
      name2(10),
      amount1 TYPE p,
      amount2 TYPE p,
      END OF t_name.
    DATA: it1_sum TYPE STANDARD TABLE OF t_name WITH HEADER LINE,
          wa_it1_sum TYPE t_name,
          it2_sum TYPE STANDARD TABLE OF t_name WITH HEADER LINE,
          wa_it2_sum TYPE t_name.
    wa_it1_sum-name1 = 'AAAAAA'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 500.
    wa_it1_sum-amount2 = 200.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'AAAAAA'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 500.
    wa_it1_sum-amount2 = 200.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'BBBBBB'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 100.
    wa_it1_sum-amount2 = 200.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'AAAAAA'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 500.
    wa_it1_sum-amount2 = 10000.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'BBBBBB'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 105000.
    wa_it1_sum-amount2 = 20500.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'BBBBBB'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 21000.
    wa_it1_sum-amount2 = 22000.
    APPEND wa_it1_sum  TO it1_sum.
    SORT it1_sum BY name1 name2.
    LOOP AT it1_sum INTO wa_it1_sum.
      APPEND wa_it1_sum TO it2_sum.
      AT END OF name2. " When you will use this in this Condition it will give you wrong Because this row is on number two and
                       " it is not changing but the Row one is Changing so it will work fine if LEFT MOST
        SUM.
        wa_it1_sum-name1 = 'End Name 2'.
        wa_it1_sum-name2 = 'End Name 2'.
        APPEND wa_it1_sum TO it2_sum.
      ENDAT.
      AT LAST.
        SUM.
        wa_it1_sum-name1 = 'At Last'.
        APPEND wa_it1_sum TO it2_sum.
      ENDAT.
    ENDLOOP.
    Please Reply if need more help about it.
    Kind Regards,
    Faisal

  • TouchUp Text Tool not working?

    I have Max OS X 10.4, Acrobat 8.1.2 and cannot get the TouchUp Text Tool to work? Can select text and delete/copy/paste etc but cannot add/change/modify any text from the keyboard? All keyboard text keys not working or changing data?
    Was using Acrobat 7 and it worked great, however this version is just not cooperating.
    Any suggestions would be greatly appreciated...
    Thanks,
    Ron

    I talked to a very helpful person at Adobe Acrobat Tech support yesterday (Tony) and I *think* I have the problem resolved. [BTW, I don't see any definite mentions to this here: during this problem I was able to delete (using either of the delete keys) text and I was able to hit 'return' to get to a new line - while using the touch-up text tool. Also, I was able to create a new blank document and type in next fine too.]
    After troubleshooting all the possible causes with Tech support (including manually trashing all the /user/library/preferences/acrobat (folder) and all the com.adobe.acrobat ..(8) preferences in the /user/library/preferences folder - and after reinstalling Acrobat 8 - the issue still wasn't fixed. I called back Tech Support and got the same person (Tony) and with him still on phone, I created a new user on my Mac -- recreated the text touch-up tool problem and Acrobat 8 worked just like it was supposed to do. -- so ... the problem was in my 'old' user account & probably a font problem.
    Tony the Tech transfered me over to a Font Tech at Adobe (who was a rude, nasty s-o-b who barely spent 2 minutes with the problem, but that's IMHO) who told me the only resolution, since in his opinion I had a corrupted User account, was to trash my current User account on my system and start fresh -- no alternative! Since that wasn't acceptable to me, and since the Font Tech could or would not give me a straight answer about transferring fonts from my User/Library/Fonts to the computer (root, not system) /Library/Fonts and working on Acrobat that way .... or fixing any font problems in my current /user/fonts -- ..... I hung up the phone and resolved to track this down myself (with the help that was already given to me by Tony the Acrobat Tech.
    The first thing I tried this morning was to see if the Acrobat 8 text touch-up 'bug' was still happening -- and it was.
    So I spent the rest of this morning validating fonts and deleting duplicates -- (you know how those nasty duplicate fonts just appear even though you think you have them all removed a month or so ago). I also moved all my Adobe otf fonts over to my /Library/Fonts and deleted those same fonts from my /User/Library/Fonts.
    I just fired up Acrobat 8 and tried the text touch-up tool --- and it works fine! No problem at all.
    Final answer (at least for me) is --> validate all your fonts. I used Font Book (Mac OS) to do this. Delete any major errors on fonts you can live without. Some of the warnings you get (on the critical errors and caution warning both are confusing: 'name' table warning, for example. I did find an Apple Developer document that explains (to a small degree) what these mean: http://developer.apple.com/textfonts/TTRefMan/index.html
    Definitely delete every duplicate font you find. I kept some non-duplicated fonts with minor warnings, but these fonts wouldn't be used in Acrobat anyway.
    I don't know if moving the Adobe otf fonts to my root /Library/Fonts helped or not since I didn't do a test of this prior to any validation on my user/font file. It was just one step in my bug fix.
    Let me know if this works for you all too.
    -- Susan

  • 'Get All New Data Request by Request' option not working Between DSO n Cube

    Hi BI's..
             Could anyone please tell me why the option ' Get one Request only' and  'Get All New Data Request by Request' is not working in DTP between Standard DSO and InfoCube.
    Scenario:
    I have done the data load by Yearwise say FY 2000 to FY 2009 in Infopackage and load it to Write-optimised DSO (10 requests) and again load Request by request to Standard DSO and activate each request. I have selected the option in DTP's to  'Get All New Data Request by Request' and its working fine between WDSO and SDSO. But not working between Cube and SDSO. While Execute DTP its taking as a single request from SDSO to Cube.( 10 request to single request).
    Regards,
    Sari.

    Hi,
    How does your DTP setting looks like from below options ? It should be change log, assuming you are not deleting change log data.
    Delta Init. Extraction from...
    - Active Table (with archive)
    - Active Table (without archive)
    - Archive ( full extraction only)
    - Change Log
    Also if you want to enable deltas, please do not delete change log. That could create issue while further update from DSO.
    Hope that helps.
    Regards
    Mr Kapadia
    *Assigning points is the way to say thanks*

  • TEXT-INDENT NOT WORKING

    Hi!
    Please see the below CSS code, why isn't the text-indent not
    working? everything else is?
    a.quick_link_buttons:link {
    color : #004489;
    font-family : Myriad, Arial, Helvetica, Verdana, sans-serif;
    font-size : 12px;
    text-indent : 10px;
    line-height : 20px;
    text-decoration : none;
    font-style : normal;
    font-weight : normal;
    a.quick_link_buttons:hover {
    color : #004489;
    font-family : Myriad, Arial, Helvetica, Verdana, sans-serif;
    font-size : 12px;
    text-indent : 10px;
    line-height : 20px;
    text-decoration : underline;
    font-style : normal;
    font-weight : normal;
    Many Thanks!

    You don't need to respecify styles that will inherit or
    default styles. You
    could achieve the same styles with the following -
    a.quick_link_buttons {
    color : #004489;
    font-family : Myriad, Arial, Helvetica, Verdana, sans-serif;
    font-size : 12px;
    text-indent : 10px;
    line-height : 20px;
    text-decoration : none;
    a.quick_link_buttons:hover {
    text-decoration : underline;
    As for why the indent isn't working, try 'padding-left:10px;'
    instead, when
    applied to the inline element. Or, you can have a rule that
    will apply to
    the container for these links, e.g.,
    <div style="text-indent:10px;">
    <a class="quick_link_buttons">whatever</a>
    </div>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "jinxed" <[email protected]> wrote in
    message
    news:eur929$gro$[email protected]..
    > Hi!
    >
    > Please see the below CSS code, why isn't the text-indent
    not working?
    > everything else is?
    >
    > a.quick_link_buttons:link {
    > color : #004489;
    > font-family : Myriad, Arial, Helvetica, Verdana,
    sans-serif;
    > font-size : 12px;
    > text-indent : 10px;
    > line-height : 20px;
    > text-decoration : none;
    > font-style : normal;
    > font-weight : normal;
    > }
    > a.quick_link_buttons:hover {
    > color : #004489;
    > font-family : Myriad, Arial, Helvetica, Verdana,
    sans-serif;
    > font-size : 12px;
    > text-indent : 10px;
    > line-height : 20px;
    > text-decoration : underline;
    > font-style : normal;
    > font-weight : normal;
    > }
    >
    > Many Thanks!
    >

  • IPod model A1059, freezes, unresponsive to all click wheel entries.  Reset does not work.  Does not show up in ITunes or on windows explorer.  What is the problem and how do I fix it?

    IPOD model A1059 appears frozen and is unresponsive to all click wheel entries. Reset does not work.  Does not show up in ITunes or in Windows Explorer.  What is the problem and is there a fix?

    If you are unable to reset the iPod (assuming the hold switch is not in the On position either), then you'll have to let the iPod's battery fully drain. Then connect it to a charger and leave it to charge for a couple of hours.
    B-rock

  • TS2755 My voice to text is not working. How can I fix it? I have an iPhone 5. Thx!

    My voice to text is not working? How can I fix it? I have an iPhone 5. Thx!!

    The microphone icon is not available- it's there but a pale grey. I could use it now to type this but not when texting. Siri is enabled and working fine.

  • Hi guys, I have a big problem! My bookmark shortcut entry(command D) does not work anymore and do you know by any changes how to undo resetting of Safari? Thnx a million :)

    Hi guys, I have a big problem! My bookmark shortcut entry(command D) does not work anymore and do you know by any changes how to undo resetting of Safari? Thnx a million

    Try troubleshooting the Safari .plist file.
    Quit Safari.
    Open a Finder window. Select your Home Folder in the Sidebar on the left. It has a small house icon. Then open the Library folder then the Preferences folder.
    Move the com.apple.Safari.plist file from the Preferences folder to the Desktop. Relaunch Safari. Try a bookmark.
    If that didn't help, check Safari / Preferences then select the Extensions tab. If you have any installed, turn that off, quit then relaunch Safari.
    If Extensions aren't the issue, reset Safari. From the menu bar click Safari / Reset Safari. Select the top 7 buttons, click Reset.

  • Adobe XI - Hightlight text tool not working

    Just downloaded adobe XI and the hightlight text tool not working.  How can I get this to work.

    I guess you can always use the box tool in drawing markups to draw a box around the text then play with the colors until you get close to what you want.
    The only thing I don't like about that (besides it being a PITA) is that it covers the text with color as well where the highlight tool does not.

Maybe you are looking for

  • How to duplicate/copy user profile

    Hi, Is there a way to Duplicate or Copy a User's Authorisation Profile to another User? If so, HOW? Thanks

  • How to read SAP Work place Inbox (Tcode  SBWP )

    Hi I want to read the user inbox have   like  Documents,workflow items,deadline messages ,incorrect entries , after reading all those from inbox i want to forward to another user , Could any body tell me how to read info from Workplace Inbox and how

  • Windows Oracle x86_64 bit Installation

    Hi, I am installing a new system on Windows Server 2003 Enterprise R2 x64 Edition and Oracle 10.2 as the database. The product is R/3 Enterprise 4.7 X 1.10 SR1. According to the note 899111, I have taken the Installation master for R/3 4.7 X 2.00 SR1

  • 865PE Neo-PFISR Stable in Prime 95----but won't run the 3DMarks at all????

    I don't get it..... This board (865PE Neo-PFISR) is VERY stable in Prime 95-----yet I can maybe get through the first test of any of the 3Dmarks----and PCMark will always fail as well. I even reverted to STOCK, default settings. Uninstalled and reins

  • Oracle 11g Database as RPM's

    This question probably gets asked all the time, but we're relatively new to Oracle. Is Oracle 11g available as RPM's? If not, what about a command line installation script that DOES NOT require human interaction? At the very very least, can the requi