Help! JavaScript works not when the object is moved from one page to the other!

Hi all:

I am new to Adobe Livecycle Designer (version 8.0). I created an interactive pdf form of 3 pages with many objects (text fields, radio buttons, drop-down lists, etc.), our company wants to quickly start to use.

I'm having trouble with some of my Javascript does not not with some of my items on page 2 of the form. Specifically, there is a drop down menu to "Country" on page 2 of my form. When the user selects, for example, 'United States' in the list, I have the Javascript code that is supposed to change the 'currency' list drop-down to "Dollars" rawValue accordingly (on the change event).

I think that my Javascript syntax is correct, but I am not sure. Here's my simple Javascript associated with the "Country" drop-down list (Note: rawValue 80 = 'United States' and 105 rawValue = "US $"):

-


Form1. Page1.cmbContactInfoCountry::change :-(JavaScript, client).


If (this.rawValue == 80) {}

cmbCurrency.rawValue = 105;

}

It sounds pretty simple and it WORKS when my "Country" drop-down list is moved to page 1 of the form, but it WON'T WORK when I move the combo box "Country" return to page 2 of the form (i.e. where it belongs).

Anyone has suggestions or solutions? I spent probably 6-8 hours of racking my brain trying to figure out why it works when on a single page, but it does not work when to move to another page. I guess I can have corrupted something OR that I not address fully the proper name of the object?

Help, please!

Frustrated and helpless, near Chicago.

Taylor T

Yes, it's a quirk of... in the drop-down lists when you select an item in the DOF it is not committed until you exit the field, unless you do the following:

If (this.boundItem (xfa.event.newText) == 1) {}

cmbCurrency.rawValue = 1;

}

ElseIf (this.boundItem (xfa.event.newText) == 2) {}

cmbCurrency.rawValue = 2;

}

The xfa.resolveNode stuff was not necessary that both objects are of the same subform, and as such can 'see' each other.

Think like a folder structure subforms - elements can see what is in their own folder but will say where to find things in other folders. If cmbCountry was subform1 and cmbCurrency was so in subform2 that rawValue above lines would look like:

subform2.cmbCurrency.RawValue = 1;

It's a good idea to name all your objects, subforms, etc. it is to work with script is much easier - so you won't have to deal with things like these pieces of xfa.resolveNode you had before (as well). He ones because you have more than one subform called "subform", the number of hooks is the Instance number (when you have several of the same object) if the program has to differentiate between the various "subform".

The number of instance come in handy, but for things like the rows of the table and so on when you need to make calculations.

Tags: Adobe LiveCycle

Similar Questions

  • My Apple iPhone 5 touchscreen doesn't work not when the call comes. This problem is only in locked mode and mode unlocked when the call come it works normally. The problem is only locked Iphone and a just coming guard time. give soltn

    Hello can anyone give solution to my problem.

    my iPhone touch 5 works not when it is in locked mode and it's time all incoming call came the touch works do not. other times, the touch works normally wat is the problem. ?

    If you disturb not activated. Settings > do not disturb.

  • Satellite Pro M30 graphics works not when the driver is installed

    Hi all

    I m having problems with my nvidia Geforce FX Go5200, in a portable Satellite Pro M30, (processor Intel Pentium M 1.7 GHz, 512 MB Ram). This card was working fine suddenly the laptop stops.

    I formatted the laptop and installed Win XP PRO. After installing the driver VGA, I restarted the laptop, but black screen started to come right after the Win XP splash screen appears. The laptop continues to start up but no screen.

    It starts fine in safe mode. I get my best screen simply by disabling the geforce card or uninstall the driver. I tried to install a new driver for the VGA on the download from Toshiba site, but same problem appears. I also tried the BIOS update but nothing happens.

    Can someone help me?
    [email protected]

    It's very strange question. It will be really interesting to know if this happens when you use the CD delivered recovery facilities.

    In any case, I assume that there is a problem with the LCD display. In safe mode, the desktop appears in the resolution decreases but the resolution to the OS boot will be suitable for a standard (1280 x 800), and of course, there is the problem.

    I am not a technician, but I recommend you contact the Service partner. AFAIK they use special tools and programs for display tests. They can tell you more.

  • Contact ID works not when the iPad 9.7 Pro is supported

    My iPad running iOS 9.3.1 Pro 9.7 is only a few days old and working perfectly except for one question...

    When connected to the charger the Touch ID does not recognize the fingerprint to unlock the device.  As soon as I unplug the accusations, everything works well again.  I've already talked to Apple, however, we thought that resetting factory solved the problem, but in reality all that has changed is that the charger As disconnected.  Before going back to Apple once again, I thought I would check with the experts.  :-)

    Thank you...

    various reasons are cited-

    1 low power mode

    2 electrical interference

    3. no standard charger

    Not sure, there is a unique solution

    iPhone 5 s Touch ID does not not then plugged on charge, charge.

  • Venue Pro 11 on screen keyboard works not when the keyboard of the Tablet is connected

    I know that we are aware of this problem:

    When the lid of the keyboard of the Tablet is returned to the back of the shelf, they keyboard does not. but windows 8 still recognizes its connected and the screen keyboard it does not automatically jump upward.

    The Surface and the RT Nokia tablet correctly, both work. It's going to be a fix for this in the future? Is this a software problem or a problem with keyboard? It's really a big problem that needs fixing because it let the unusable keyboard cover. I am seriously considering to take the Tablet back because of this problem. Any information would be appreciated.

    There is already another thread on this - please check it and close this one as replied.   Thank you.

    http://en.community.Dell.com/support-forums/mobile-devices/f/4586/p/19535674/20497309.aspx#20497309

  • LOV cascading works not when the page is public

    Hello

    I have a LOV cascading in a tabular form that I built example Denes Kubicek
    http://Apex.Oracle.com/pls/OTN/f?p=31517:176:2702932664861989:

    Thanks to this wonderful examle, I could make my lov cascading.

    However when I do the public page, the second lov (which is based on the first) does not work.

    Inorder to debug I changed to get.get () get.get ('XML') and put an alert on it; to check if the string of the selection list is correctly returned by the application process - it returns null. The alert even returns the string from the selection list when I set the authentication on the page.

    Also I noticed that when the page is public the application (TAB_CASCADING_ITEM) item is not be filled with the value of the first selection list.
    No matter who has encountered the same problem?
    Appreciate any suggestions?

    Thank you
    Dippy

    One of the parameters in the htmldb_get is the page on which the process is running. You should change this to the current page or make public page 0 as well.

  • Problem moving from one page to another on the Web site

    When I access this site with Firefox
    I can't go beyond the first page. The problem is the same on our second computer. If we use Google Chrome or Internet Explorer, everything works fine. I tried the unblocking of the popups in the option settings, and it makes no difference. I can't directly compare the internet in other browsers proxy servers re access settings because basically, I do not understand the information on the screens! Help!

    If you use ad blocking extensions, could you try to make an exception for the site?

    If that doesn't help and you want someone to look at your list of modules, you can copy and paste into the second table here ("Extensions"):

    Help > troubleshooting information

    Alternatively, you can try these sites with your add-ons disabled using Firefox Safe Mode. Use

    Help > restart with disabled modules

    In the dialog box, not the check boxes, click on "continue mode without failure." If the sites work as expected, then the most likely cause is one of your modules.

    Is it that help at all?

  • getURL works not when the swf is loaded into another swf

    Okay, I need help with something relatively simple which for some reason that I was not able to find information about everything?

    I hope that this will be something easy to correct.

    I basically the following:

    • my main movie "Home.swf".
    • another film "Sub.swf".

      I loaded "Sub.swf" in "Home.swf" via an empty movieclip.

      In "Sub.swf", I have some links that, when clicked call getURL and open an HTML page in the browser.

      But for some reason any the getURL does not work and I think its because the getURL is called from a movie loaded into "Home.swf".

      I tried to change the actionscript code for:

      _root.getURL('/MyPage.html');
      _parent.getURL('/MyPage.html');

      but neither (_root / _parent) seems to work?

      Need some help here please.

      Thank you very much.

      Kind regards
      M.

    It is not the getURL that's the problem. It's your _level0.imgMC.MC5 that is the problem.

    in Sub.fla, replace _root _level0 and add the code below your delivery code:

  • quick response of iOS for whatsapp works not when the alphanumeric password has been on iPhones

    Hello

    My question was, I was getting keyboard white with no key, just by doing a quick response to whatsapp messages, while the phone is locked and if the phone has been unlocked, it works fine.

    After a quick search, I found that in this case, on all iPhones (I was able to replicate on iPhone6s, 6 and 4S), regardless of the versions of iOS (as long as it takes in charge the quick response), while the phone has been set with digital access code Alpha and locked. If it's a digital password, quick response normally works with the good visible keyboard. From now on, I found that this happens only with Whatsapp Application. Can someone tell me what is an iOS problem or something which Whatsapp team need to check?

    (Also please check on your other app, instant messaging, if get you this error during the series with an alphanumeric password).

    Thank you

    Doudou.

    With the help of iPhone6S

    OS version: 9.3.4

    Since I have never heard of this issue with any other application and WhatsApp is not an Apple application, I suggest you address the problem with WhatsApp and see what they have to say.

  • Wireless mouse not working not when the games starts

    I have a logitech LX6 wireless mouse and keyboard. They stand work very well in the main menu of Windows 7 and surf the Internet, how ever when I start a game (I tried WoW and SUP Commander) the mouse stoped working and everything I could do on the keyboard was out esc. Any ideas.

    It's strange.  You have another mouse and recently pass to it?  Or have you had it for awhile and the mouse has started to act like that?

    I could certainly go to the Web from Logitech site and see if there are any updated drivers for your mouse.  Also, make sure that you don't have another mouse plugged in at the same time playing these games.  I guess you do not, but sometimes a game will remember your previous settings of the mouse, and when you go play, he thinks that the mouse is always there.  So, you will need to uninstall and reinstall your games.  However, I would do that as a last resort.  If your mouse is new, you may contact support of Logitech to see if they know work around or solution.

  • Outline of the timeline layers works not when the alpha value of 0 mc?

    I could have picked the wrong day (version) to try and move the CS6 CC, but when I have a layer of some type and it's a movieclip, if this object's alpha 0 and I click on the outline of the layer I don't see the object as an outline.

    Anyone else having this bug? Is there a solution?

    Use actionscript to assign alpha.

  • moviescript works not when the flash file is on stage

    My keydown script on will not work as long as I have a swf file on the stage that has a text entry field in the first image, which I use to set a variable in the swf file.

    Even if I go to another image of the SWF without the input of text field, I can't yet use keydown to the Director.

    If you know the tricks of jargon that would be great.

    Or plan B would be to set the variable in the Director and send it to a swf that has no text entry field.  But I'm not sure how to pass variables to a swf file.

    And the jargon that I saw online does not work for my swf named 'digitalclock' that has a variable "hours":

    Sprite () 'digitalclock'). setVariable (hours, 1,)

    Or plan A would be if you know clocks to digital reading to the Director who may have their departure hours and minutes set by the end-user.

    Thank you

    There are many possible solutions.

    Here is a demonstration that is too simplistic.

  • N5902 Input Device works not when the Dongle is attached directly to the USB Port of the 3.0

    It's a big problem because the port only 2.0 on my Lenovo Yoga 700 is also used for charging and unless I'm on battery so I have to fix the dongle because otherwise the USB device is not recognized and I can't use my N5902 input device. Someone has an idea, a driver so I can install it manually? I use Windows 10.

    I managed to find a solution, I applied "Solution 2" of https://www.drivereasy.com/knowledge/fix-issue-after-upgrade-system-to-windows-10-usb-ports-don ' t - wor...

  • PageContext.forwardimmediatly works not when the hash table is used.

    Hello

    I try to use as below:

    HashMap hm = new HashMap (1);
    HM.put ("conc_called", "Yes");

    pageContext.forwardImmediately ("OA.jsp?page=/XXX/xxPG",
    NULL,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    NULL,
    GMC
    true,
    "N");

    But I get an error message indicating that the method does not exist. Any suggestion would be appreciated.

    Thank you
    PK

    Make sure the hash table is of the type com.sun.java.util.collections.HashMap and not java.util.HashMap

  • BlackBerry Smartphones Trackpad works not when the camera

    My Torch 9800 has lost the possibility to zoom in, either by the trackpad or using the touch screen. He is also running very slow and sometimes hangs.  I use the software up to date.

    Hello mariajh

    Welcome to the community

    Please restart the phone by removing and placing the battery back while the unit is on. This process has fixed application inside modules without losing any stored data. Let us know if you still experience the issue after that.

    Ron

Maybe you are looking for

  • Satellite X 200-203 turns off when turn off the power

    Hello first of all, excuse my bad English please. Since 2 days I have the satellite X 200-203 portable and my first problem is that the battery does not load.When I connect the power he works very well, but did I unplug the power replisse or the lapt

  • Question about the BIOS upgrade for Windows

    I tried to update my BIOS M200 of 1,20 to 1,80 using the Windows version. Error is telling me that I am not an authorized user. I am local and all administrator requirements ar fullfilled readme.What can be the problem? I don't want to use the upgrad

  • Elitepad 900 Windows 8.1 WLAN problem

    I have several Elitepad 900, model number is D4T16AA. Recently ugpraded to Windows 8.1 Enterprise using Microsoft Enterprise Agreement media, works as a full clean install (not an upgrade on the spot). All updates to existing Windows were then applie

  • a.c. 42078 _

    When I start to play a game on [yahoo, spintop, pogo etc.] my computer stops completely after just 10 or 15 minutes. I ran a scan to see if viruses were detected but nothing found. My question is have you suggestions?

  • USB redirection in farm RDSH vWorkspace 8

    It seems that for new trendy USB drives USB redirection does not work. If I configure the drive letter that is known to the system before initiating a connection, redirect is OK, but I can't redirect USB drives are connected while the session is acti