Why the Javascript that controls some new text fields does not immediately?

I have created a form in Acrobat Pro XI.

I've done several text fields asking for the room number. Other text fields create phrases based on these entries of room number. For example, if a user enters a room number in the text box "Room1", code for "TextBox1" is the following:

var Numerobureau = getField("Room1").value;

If (Numerobureau! = "") getField("TextBox1").value = "enter the area in square feet of room" + Numerobureau + "here:"

else getField("TextBox1").value ="";

I find that TextBox1 is not continually re-rendered as text changes "Room1". If I change the entry in Room1, TextBox1 remains unchanged for a while. After that I click on another box in my form and then get out again, the code Javascript in TextBox1 "catches up" and displays the correct text.

I know that my code is correct, because FINALLY the text boxes behave correctly. Not must not all text fields be constantly recalculated at any time that a person interacts with the form?

Also, check the order of calculation of field is correct.

Tags: Acrobat

Similar Questions

  • Get the value of the drop-down list (selectedIndex) and the text field - does not

    Hi all

    I'm trying to find and change the values selected by the user using a drop-down list and text field. Here's 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 does not take the value that the user selects in the drop-down list and the text field. It takes the default value as "January" and the year is '2013' as these two values are given as selectedIndex:0 and editContents: "2013". I compared the coding with a few other scripts work as well, but it does not work. I added several alert boxes to check the value we get.

    In addition, search for it and change also does not work. Please help me on this. Thank you.

    Kind regards

    Bachi. D

    Change the order of dialogresults:

    ...

    var myYear = col2.textEditboxes.add ({editContents: "2013", minWidth:100});})
    var MyRev = col2.textEditboxes.add({minWidth:100});)
    Ditto var = myDialog.show ();
        If (myYear.editContents == "") //entry is «»
        {
        Alert ("Please enter a text in the content field.");
        ChangeRevDetails();
        }
        else //user entered if(myResult == true) datas
        {
    var RevMonth = (myList [myMonth.selectedIndex]);
    var RevYear = myYear.editContents;
    var RevNumber = MyRev.editContents;
    "var RevToReplace1 = RevMonth + ', '+ RevYear;

    "var RevToReplace2 = RevMonth + ', '+ RevYear + 'Rev' + RevNumber;

    ...

    did not have a look for the problem of change to find

  • Ive tried all the solutions that you recommend and Firefox still does not load the Web site.

    I deleted the cache and cookies, scanned for malware (none found) tried to disable my anti-virus, block ad and other programs. That is, works very well with this site, but firefox will not load. I do not receive the error messages, just a white screen empty after about 30 seconds of loading time. Here is a screenshot: thttp: / /prntscr.com/dd1501 I looked through all the options for firefox and nothing that I don't seem to make any difference. I can view the information page and I do not get a glimpse of what I would see when I choose the different elements in the window. It is also a site that I had been going every day without any problem until the last 2 weeks.

    Sorry, I just realized that I can visit the page and this experience for me.

    The page contains a style rule display: no for the body that completely hides it. It is supposed to clear at one point, but obviously does not work.

    To make the content visible, you can run a small script in the console, or save it as a bookmarklet for easy access, but also you should post this on the site in case they have not noticed.

    The console method

    Open the web console of Firefox under the page using

    • CTRL + SHIFT + k
    • button '3-bar' menu > developer > Web Console
    • (menu bar) Tools > Web Developer > Web Console

    Then paste this script and press ENTER to run it. Then, you can close the console:

    document.body.style.display = "";
    

    Bookmarklet

    If this affects the pages you visit often (as a person without an account, I don't know much on this site), you can save a script as a bookmark in an ideal location for use with a single click.

    To implement that:

    • Select and copy the following script:

      javascript:void(document.body.style.display = "");

    • Right click a place on the bookmarks Menu or Bookmarks Toolbar where you want to save the script and choose new bookmark
    • In the location box, paste the script, and then in the name box, type something you remember as TradeKing and click the Add button

    To use the bookmarklet:

    Once the page is loaded, click on the bookmarklet to run the script on the page.

  • get an overview of the header pane in strange characters text and does not display attachments

    Use Windows Mail with Vista. In the header of the preview pane, the 'From', 'A' and 'Subject' text appears in a sort of "bitmap" police, and where the 'trombone link' attachments appears usually (hand right end of the header) there is nothing.

    Are there attachments, but to access, you will need to open the e-mail and download from there.

    Not "the end of the world" kind of problem, but annoying.

    Anyonelse had this?

    Hi JohnG16,

    I'm happy to hear that you were able to solve the problem and thanks for letting us share the resolution.

    Because the problem is fixed it is not necessary to provide the screenshot.

    Halima S - Microsoft technical support.

  • Why the visiontek radeon 7970 3 GB graphics card does not work with my xps 8300?

    I bought a Radeon 7970 visintek 3 GB graphic card thinking that it works with my xps 8300. It fits everything is plugged in correctly, but when I turn on my computer does not recognize the graphics card? The graphics card is not broken I build it in another computer and it works perfectly. I am very disappointed at this because I thoughtI would save money, do not buy a new computer and just buy the food and the radeon. It turns out that the Radeon does not work. If someone could tell me what the problem is, that would be greatly appreciated.

    Thank you, Jon

    Hi Jongerber,

    A 500W (or more) power with a 150W power connector 8 pin PCI Express and a connector power 75W 6-pin PCI Express is recommended for the graphics card AMD Radeon 7970. Your XPS 8300 has a diet of 460W. This maybe one of the reasons for the question from the video card works on another computer.

    Please see the link below for the requirements for the graphics card of Radeo 7970:

    http://Dell.to/1brhNaJ

    The following video cards are compatible with the Dell XPS 8300.

    Discreet (PCI Express x 16 card) - NVIDIA GTX460, NVIDIA GT420 (M207)
    ATI Mobility Radeon HD 5670/HD 5770 / HD 5870/HD 5450

    When you click the compatibility Option in the link below, you will see that the XPS 8300 is not listed under supported for the video card Visiontek AMD Radeon 7970 systems.

    http://Dell.to/1bKUFlY

    Hope that the information provided above is useful. Answer please if you have other queries.

    Thank you and best regards,
    Babita S
    #iworkforDell

    For easy access to the drivers, manuals and updates, please visit our Support Site .

  • Click and drag in the Favorites or in text fields does not

    Click and drag does not work with favorites anywhere, or any text fields. He used to work a lot in v11, but not v12

    I tried to revert to my version of Firefox v11 backup but it keeps automatically updated to v12 despite disabling auto update in the preferences and even when it is offline - frustrating.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

  • MY HOTMAIL ACCOUNT IS BLOCKED AND THE SOLUTIONS THAT THEY NEED TO FIX IT DOES NOT WORK!

    My hotmail account has been blocked now for 5 days, the solution Center says is really confusing and difficult to use... they say that someone will help, but on all the parts that you click on it just moves you to another useless page! I have changed my password, filled out their recovery with so many details I can think but left out my credit card details section that I did not and certainly has not signed with an upward!

    Hello

    The question you have posted is related to Windows Live, and would be better suited in the Windows Live forum. Please visit the link below to find a community that will provide the support you want. Link: http://windowslivehelp.com/product.aspx?productid=1

  • required form of text fields does not work in Safari

    Hi all

    I created a php form in dreamweaver with a range of text fields that are required before someone can send the form. The element of mandatory field works in Chrome and Firefox but does not work in Safari. Visitors to the site can push the button submit without filling out the required fields.

    Any thoughts of how?

    Thanks in advance

    Safari does not support this attribute, you must use JavaScript. This page contains a hacky solution, which should add the functionality you want: http://www.html5rocks.com/en/tutorials/forms/constraintvalidation/#toc-safari

  • What is the difference between MSN MAIL and normal mail? In the history that lists visited sites, MSN MAIL does not open to review. He hs the BLUE BALLS and will not open! Why?

    When I go to my history to review a site I saw previously, MSN MAIL sites will not open and the blue balls are also present. That not what it means and why will the sites of MSN MAIL only opens when clicked on?  Thank you!

    Hello

    The question you posted would be better suited in the MSN forum. Check out the link and post the same question to the possible solution.
  • PDF document with the text field does not have to scroll down after being placed in InDesign

    Hello. I have a PDF form that has a text box. If people type a lot of text in there, a scroll bar appears so that someone who reads the form allows to scroll up/down in this text box to read all the data.

    I placed this PDF file in a new InDesign file. When I export a new PDF file, the text is still there, though, he is no longer scrollable. If I highlight the text in the box and drag my slider lower, I can highlight "invisible" text that matches the text that someone would normally scroll down to see.

    Is there anyway I can 'keep' scrolling form PDF > Indesign > new PDF?

    Original PDF form was made in InDesign. Thank you!

    The PDF file that has been placed in ID loses all interactivity and form fields. There is no way to do what you want.

    Bob

  • All the lists on Control Panel and desktop etc does not open, just disappears

    When I move the mouse on one of the list in the control panel or try clicking on it just disappears, also another list, even the desktop icons opens more, when I click on them, they vanish - will not open, when I open 'start' I try to search for a document, it will not even open the folder with the arrow.  Please help, I don't know how it happened, it's very annoying!  I tried looking for the answer.  Not sure if I am in the field of the right question, but can't decide what she made of the object.  H.

    Thank you for your reply - I was able to reassign my 'power' on the keyboard button to shut down the computer, (had disabled), [usually used the Hibernate button], because it would not "stop" on the pop up on the arrow of the Start button, kept disappearing.  I just turned on and everything seems to work again, after checking everything. The only changes were the creation of a network, (had been disabled), I bought a netbook for a wireless connection.   Don't know what caused, but thanks for trying to help me.  Very grateful for this help.

  • Windows Live Photo gallery has always been on my Windows 7 and I have printed photos of the email that I downloaded. Now it does not work?

    I downloaded and photo by email to photo gallery and I now want to print it.  How to print it?

    Hello

    The question you have posted is related to Windows Live Hotmail and would be better suited to the Windows Live community. Please visit the link below to view the query in instances of Windows Live Hotmail for assistance.

    http://www.windowslivehelp.com/

    Hope this information is useful.

  • I gave the day and for some reason, read aloud does not work, is it past?

    the options are still there to change the setting, but there is no way to activate it. I missed something?

    work of the ITI with DC on a Mac. The problem is Acrobat/Reader XI 11.0.11

  • Calculation of amount on several text fields does not?

    Hello! I apologize if this question was asked before. I looked through the forums for a few hours, but has not found an answer that has helped me.

    My problem: I do a calculation of the mileage form. It is supposed to add up everything in the line of mileage and put a total in the total box, in a different area, multiply total mileage of a specific quantity and display the result in dollars. I, however, am stuck on the first part of the calculation.

    What I did: I've created a form to an existing document. I went to the box, I wanted to show the number of miles and right-click on it in form editing mode. I clicked on 'Properties' and went to the tab 'calculate '. I clicked on the option of radio "value is the sum of the following fields." I then select the fields I want to be added. I have them labeled as follows: MILES_1, MILES_2, and so on up to the MILES_31. I chose MILES_1 through MILES_31. Then I clicked on 'Close' and saved the document. This editing in Adobe Acrobat Pro (trial version) works fine, but when I edit in the preview player or Mac, no calculations are made. I checked the order of computation of field, and the only field in the order is the total mileage. I'm not sure what I'm doing wrong or what else I should do.

    What I'm trying to do: I wish that all fields, MILES_1 thanks MILES_31 added together and the sum displayed in the total mileage and then this sum to be multiplied by a specific amount and display in another area.

    Apple saw the ruins of the PDF Forms. Never use it to open a PDF file with form

    fields.

    If it worked in Acrobat, it should work in Reader.

  • Edited text symbol does not appear when I create a new instance

    I just edited the text within a symbol. But when I drag this symbol on the canvas to create a new instance, it does not reflect the changes that I made. Is this a bug or I do something wrong?

    Use the symbol properties panel to make changes to the text label.

    h

Maybe you are looking for

  • Airport extreme went dark

    My light on my Airport Extreme extinguished.   I powercycled, but still no light.  I have small flashing lights in green next to the connectors. No sounds and nothing appears wrong except for the light and not network. Any suggestion would be appreci

  • Pages will not open documents

    Hi all I have version 5.6.2 pages on a macbook pro Ox El Captain 10.11.6. Suddenly, last month, pages began to refuse to open a specific document, not all, just a. But today, he refuses to open another. The documents that we are talking about are "co

  • Create the Project File Name Prefix makes space after prefix

    I am creating a project template.  I noticed that when I put in the file name prefix it prefixes all my screws with this value MORE space.  I like the prefix but do not want the space.  Does anyone know how to make sure that when it renames all the s

  • Try to use remote desktop to connect to a computer in safe mode with networking

    I'm trying to troubleshoot a remotley pc on the network using remote desktop. I can connect properly, however, I want to continue to solve the problems with the pc remote in safe mode. When I choose to restart the pc in safe mode with network remote

  • You are using Windows XP and Firefox or IE8, I can't link to Hotmail email addresses.

    Original title: Impossible to link email addresses. Using XP and Firefox or IE8, I can't link to Hotmail email addresses.  I get the message that the link is unavailable.  This has been for at least 1 month.