Help! Javascript not working when object moved from one page to another!

Hello all:
I am new to Adobe Livecycle Designer (version 8.0). I have created a 3 page interactive pdf form with numerous objects (text fields, radio buttons, drop-down boxes, etc.), that our business wants to begin using soon.
I am having difficulty with some of my Javascript not working with a few of my objects on page 2 of the form. Specifically, there is a drop-down box for "Country" on page 2 of my form. When the user selects, for example, "United States" from the list, I have Javascript that is supposed to change the "Currency" drop-down box rawValue to "US Dollars" accordingly (upon the change event).
I think my Javascript syntax is proper, but I am not certain. Here is my simple Javascript associated with the "Country" drop-down box (Note: rawValue 80 = "United States" and rawValue 105 = "US Dollars"):
form1.Page1.cmbContactInfoCountry::change: - (JavaScript, client) -
if (this.rawValue == 80) {     
     cmbCurrency.rawValue = 105;
This seems pretty straight forward and it WORKS when my "Country" drop-down box is moved to page 1 of the form, but it WILL NOT WORK when I move the "Country" drop-down box back to page 2 of the form (which is where it belongs).
Does anyone have any suggestions or solutions? I have spent probably 6-8 hours racking my brain trying to figure out why it works when on one page, but it does not work when move to a different page. I am guessing that I may have corrupted something OR that I am not fully addressing the proper name of the object?
Please help!
Frustrated and helpless near Chicago!
Taylor T

Hi Jono:
Thank you for your quick reply.I was able to obtain the full name of the cmbCurrency object using the method you taught me. That is brilliant! Great short-cut tool.
Unfortunately, I am still having issues with getting Javasript for the cmbCountry object to work with the cmbCurrency object. I haved pasted my new Javascript below.
JavaScript for cmbCountry object:
//UNITED STATES
if (this.rawValue == 1) {
          xfa.resolveNode("form1.#subform[1].cmbCurrency").rawValue = 1;
else
//CANADA
if (this.rawValue == 2) {
          xfa.resolveNode("form1.#subform[1].cmbCurrency").rawValue = 2;
I have checked the "Specify Item Values" checkbox of the cmbCurrency drop-down object and Value 1 = "US Dollars" and Value 2 = "Canadian Dollars".
When I select "Canada" from the cmbCountry drop-down object, the rawValue of the cmbCurrency drop-down object is changed to "US Dollars" (when it is clearly defined as "Canadian Dollars"). When I select "United States" from the cmbCountry drop-down object, the rawValue of the cmbCurrency drop-down object stays blank for uknown reasons. Very strange.
Since I am not able to further explain in detail on what I am experiencing, I have posted a link to my file below (I just signed up for an account at ShareFile). I would forever be indebted to you if you can help me figure this out!
https://thomptk.sharefile.com/?cmd=d&id=07ede2fe11db4549

Similar Messages

  • Moving from one page to another page - need to flush changed data

    Hello guys,
    I am in this situation:
    -- User opens edit page -A and edits something.....
    -- clicks another page B on menu -- gets unsaved data warning -- clicks OK
    -- Moves to page B (search page).....
    -- Searches for the same record and opens same page A (for the same record)
    -- Now again i see the same edits I made in the first step
    I want to load the data from database here.... i don't want to keep the edits (changes) after i move from that page.....
    because what happens is that after i go to another page and hit the Commit button..... that saves the data which i have modified in previous page but didn't save it.... which is a big problem for me....
    Any suggestion or idea willl be a greatly appreciated .. thank you...
    I am using 11.1.1.4
    Thank you
    -Raj

    The refresh operation is part of the row interface. Check the refrech(int mode) and the different modes
    >
    static final int REFRESH_WITH_DB_FORGET_CHANGES
    REFRESH_... constants are used as refresh mode flags to be passed into refresh(int).
    REFRESH_WITH_DB_FORGET_CHANGES forgets edits that the current user made to the row. The row data is refreshed from database. The latest data from database replaces data in the row regardless of whether the row was modified or not.
    If the current user had called Transaction.postChanges() REFRESH_WITH_DB_FORGET_CHANGES will pick up the data that he himself wrote through his call to postChanges().
    If REFRESH_REMOVE_NEW_ROWS is not specified, REFRESH_WITH_DB_FORGET_CHANGES puts a new row back to blank. If REFRESH_REMOVE_NEW_ROWS is specified, the new row is removed.
    >
    You can combine the modes if necessary.
    If you chose to go the rollback way, you should not generally rollback, but think in units of work. If you navigate to a different unit of work you should do a rollback. I'm doing this whenever the user navigates via a menu entry as they are used as boundries for units of work in my apps. This can be done as part of the taskflow, so that it's visible for all developers.
    Timo

  • My iPad is working very slow, moving from one site to another?

    My iPad is working very slowly, from site to site.  Is there an update I have missed?

    Are your clients using a hostname or an IP address when establishing VPN connections? If it's a hostname, then you can just update the DNS record to point to the new address and you're done.
    If it's an IP address, then you need to tell your clients to connect to the new endpoint. Both IPsec and Anyconnect clients support configuration of fallback/secondary addresses for clients to connect to if the primary VPN gateway is down: for the IPsec client, you need to modify the profile on each client and with Anyconnect, you can just push the new profile on clients' next connection.
    For the ssl portal users, there is no easy way to switch if connecting to the ip address - you can modify their portal page to notify them about the migration for example.
    Sent from Cisco Technical Support iPad App

  • In moving from one page to another on a website, I get this error message:

    ices</a> and perform a title search for the words <b>HTTP</b> and <b>404</b>.</li>
    <li>Open <b>IIS Help</b>, which is accessible in IIS Manager (inetmgr),
    and search for topics titled <b>Web Site Setup</b>, <b>Common Administrative Tasks</b>, and <b>About Custom Error Messages</b>.</li>
    </ul>
    </TD></TR></TABLE></BODY></HTML>
    HTTP/1.1 200 OK
    Connection: close
    Date: Mon, 18 Apr 2011 20:02:54 GMT
    Server: Microsoft-IIS/6.0
    X-Powered-By: ASP.NET
    Cache-control: public
    Content-Type: text/html; charset=UTF-8

    this is completely not firefox problem, if you don't belief, try google chrome 10.x or MS I.E. 7/8/9.

  • Moving from one page to another

    I am running iWeb 1.1.2 and have published a site with seven pages. When I first open the site, running the cursor over each page title at the top "activates" it, and in Safari, the URL appears at the bottom. After I open a page or two, however, the site "freezes" and running the cursor over the page names does not produce a URL at the bottom of the page, thus the page cannot be opened. I have installed StatCounter on each page.
    Could someone explain to me why this is happening and what I can do to avoid it?
    Thank you.

    Thank you. I was able, with some difficulty to move the text boxes out of the Nav Bar, and delete the one with open boxes. I did not find it very easy to get the outline boxes to show and to move and resize the text boxes. I assumed that when the little arrows pointed up and down on the center "handles", with my trackball button down I would be able to change the size of the box. It seemed to take several tries to do what I wanted to do, but I finally did it. I have checked each page and they look okay. I will republish tomorrow and then check to make sure the problem is solved. If it has, I will mark the problem solved.
    Jim

  • TS4036 I have moved from one company to another and they both use iphones I backed my phone up before it was shut down I tried to retrieve contacts from my PC it did not work will it work when I get my new iphone?

    I have moved from one company to another and they both use iphones I backed my phone up before it was shut down I tried to retrieve contacts from my PC it did not work will it work when I get my new iphone?

    I updated my iPhone onto my friend's MacBook
    Why would you do that, and not on your own computer?  See the hassle it caused you?
    can he just email me the folder
    Backup files are too big to email.  Use FTP, DropBox, etc...
    how do I then put all that data back into my current phone from the new computer?
    How to restore iPhone:  http://lmgtfy.com/?q=how+to+restore+iphone

  • Transferred CS4 to new MacBook Pro, now some fonts will not work when PDFing documents from InDesign CS4. Help!

    I recently purchased a new MacBook Pro. I transferred my CS4 from my older MacBook Pro to my new computer, and although it seemed to be working fine now some fonts will not work when PDFing documents from InDesign CS4. These fonts are installed on my new computer, can be found in InDesign CS4, and work fine within the program but will not appear in PDFs. The letters turn into rectangles. Does anyone know why, and how to fix that?
    Help/input would be much appreciated. Thank you!
    Kristen.

    you should properly install adobe products, not move, migrate or otherwise transfer them.
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.5 (win), 5.5 (mac) | 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Why the menu to move from one page to another is not seen when the page is online?

    On my web, I have different pages like 'Homepage' or 'Contact' but when I publish my web I can not see the menu.
    why the menu to move from one page to another is not seen when the page is online?
    Thank you,
    Roger.

    Where are you publishing and how are you uploading the files?

  • Moving objects from one page to another

    Hi All,
    I need to move an image from one page to another...
    For example, on page 1, I have one image that needs to shifted to 5th page of the document. Is that possible?
    Vandy

    I will suggest the duplicate() method instead of the move() here.
    Advantage: the position of the object on  page 5 will be same as the original one:
    var doc = app.activeDocument;
    // "r" is the graphic frame containing the image
    var r = app.selection[0];
    //The duplicate() method will maintain position of the object as long it is NOT an anchored object.
    r.duplicate(doc.pages[4]);
    //Get rid of the original
    r.remove();
    Uwe

  • Moving from one iPhone to another

    Hi
    Can you please kindly clear this up for me. I'm reading and clicking around and just getting more confused.
    Recently I moved from an iPhone 3G -> 3GS. I did a back up and used this to restore on to the new phone. Brilliant. Everything was there except my apps and music.
    I put this down to not syncing them on that laptop I used.
    Now I'm expecting an iPhone 4 soon and want to make sure this doesn't happen again. I have gone in to iTunes (10.1 on a Mac Book Air running 10.6.5) but if I click sync on the apps it warns me it will wipe my phone and install what shows in the library - one app I don't even have on the phone. Eek!
    What should I do to ensure my apps get put on to my new phone?
    Thank you
    Shell

    Brilliant. The 'Sync Purchases' step was what I was missing, thank you
    The apps/music were on a different computer I changed from about the same time so I never got around to doing the whole sync thing on there. I did restore from this old computer but it was until I was away from it I realised what had happened with the apps and music! I understood this is what I should have done though to get them back as I know they were all synced on there.
    It all makes sense now so it won't happen again, cheers!
    To be clear for those finding this thread looking for help, if you are planning to move from one iPhone to another:
    1- Before: Do a back up (right click the phone on the left in iTunes and choose backup)
    2- Sync apps etc (right click on the phone on the left in iTunes and choose sync purchases)
    3- On the new phone when iTunes asks, use the backup
    4- After, sync it to get your apps back!
    Shell

  • DATAGRID FOCUS ISSUE: Focus got lost, while moving from one cell to another cell using tab key.

    Problem: Focus got lost, while moving from one cell to another cell using tab key.
    Example: In an AdvanceDataGrid, there are three columns having custom ItemRenderer with Spark TextInput control (editable=true & focusEnabled=true).
    When I try to move the focus in with in 2nd, 3rd & 4th column using tab key, focus got lost. Most of the time it’s working, but some time it doesn’t work. There’s no clue as to how may rows/columns the focus has jumped to; or whether the focus has gone out of the data grid altogether.
    Observations: I am not sure whether this problem is because of custom component implementation or it is because of some issue related to Flex Component.
    It only occurs when we perform some actions like some server call, some complex logic execution etc. at the focus out event of itemrenderer.
    There is one property of datagrid i.e. editedItemPosition which contains row & column index of datagrid. On the focus out event, it gets null when focus got lost. We tried to set it, but it didn’t work.
    Steps Performed:-
    1. Currently focus is in 2nd column i.e. Apply to #.
    2. Once I press tab key from 2nd column, it goes to 3rd column which is correct.
    3. Now if I press tab key from 2nd column i.e. Payment #, focus should go to 3rd column, but it goes out of data grid and set the focus of button which is outside data grid.

    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Bjtable+%2Btab+%2B%22enter+key%22&col=javaforums

  • HT1349 I have just moved from one pc to another.  I had used 5 computers to attach to itunes.  I went in and disabled all 5 of my accounts but cant get the new computer to give me a prompt to authorize this computer.  Any ideas?

    Hellow everyone,
    I have just moved from one PC to another.  They are windows pc's not macintosh.  When i installed itunes on the new computer it stated that I already had 5 devices authrorized for this account.  I did a little reading and went in and deathorized all 5 PC from the account as I am sure it was a couple pcs ago and a few iphones.   When I try and go in and authorize an account I cant see anywhere where there is a prompt to authorize the new PC.  I go into store and all it says is that there are no devices associated to this account.  What I would like to do is associate my new PC and my iphone to this account and hopefully restore from the cloud all of my music and programs. 
    Any idea what I am doing wrong here or how I can resolve this. Thanks in advance.
    Respectully.
    CK

    if it's music then drm is not used there any more and drm can be removed from previously bought drm material without cost

  • Need help in passing parameters from one page to another!

    Hi,
    I need to pass values that are retrieved from database from one page to another.
    But even when I use pageContext.putParameter(), I am not able to view the value in the 2nd page.
    Any pointers on how to pass parameters would be helpful..
    Thanks in advance!

    The requirement is on the main page there are 6 fields out of which 4 are read-only and are taken from the database and 1 is taken from database, but can be edited, and the 6th one is completly editable for the user. I am trying to pass these parameters using setForwardURL, and on the second page (Preview page, where all these fields are read-only), I am able to retrieve these parameters using pageContext.getParameters() and am able to display it as an exception but I am not able to set these into the fields using pageContext.putParameters().

  • Focus lost moving from one form to another in web deployed forms6i

    I have developed an application using forms6i rel 2
    The forms server is installed on windows 2000 and all necessary set up is done on the forms server. Patch 18 is also applied.
    On the client side I am using IE 6 and JRE Java 2 Ver 1.5.0_9-b03
    Everything works fine. But when I navigate from one form to another, the cursor focus is lost. This also happens when I navigate from one block to another block within the same form.
    In such situation when I press Windows button on the key board twice, the cursor reappears. It seems the problem is because the applet window where the forms is running is not refreshed while navigating to different forms.
    Can anybody guide me to solve this problem.
    Thanks
    Kamlesh

    Hi,
    I also have same problem ´but with forms 10g.
    If i set SeprateFrame=True then it works fine. but if applet is inside ie window and i move from this IE window to any other window and come back then focus is set to first menu item.
    whenever user comes back to forms apps, has to click somewhere in applet to activate it, this is so irritating.
    Seems that even oracle does not have any workaround for this, same thing happens on forms demo which is provided by oracle.
    Mehul

  • I have three "pages" of apps, not all of which are full.  How do I move an app from one page to another to consolidate?

    I have three pages of apps, not all of which are full.  How do I move apps from one page to another to have full pages?

    Hook your iPad up to your computer and iTunes and move them from within iTunes.
    Or
    Hold down on one of  your apps until they all start to wiggle. Then hold down on the ones you want to move and drag them on the screen. Drag them to the middle left to move them left,(such as from page 2 to page one) middle right ot move them right,(from page 2 to page 3) rearrange as you want.
    When you're done, tap the home key and everything should stop wiggling.

Maybe you are looking for