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


hello all:

 

i new adobe livecycle designer (version 8.0). have created 3 page interactive pdf form numerous objects (text fields, radio buttons, drop-down boxes, etc.), our business wants begin using soon.

 

i having difficulty of javascript not working few of objects on page 2 of form. specifically, there drop-down box "country" on page 2 of form. when user selects, example, "united states" list, have javascript supposed change "currency" drop-down box rawvalue "us dollars" accordingly (upon change event).

 

i think javascript syntax proper, not certain. here simple javascript associated "country" drop-down box (note: rawvalue 80 = "united states" , rawvalue 105 = "us dollars"):

 

-


form1.page1.cmbcontactinfocountry::change: - (javascript, client) -


 

if (this.rawvalue == 80) {     

     cmbcurrency.rawvalue = 105;

     }

 

this seems pretty straight forward , works when "country" drop-down box moved page 1 of form, not work when move "country" drop-down box page 2 of form (which belongs).

 

does have suggestions or solutions? have spent 6-8 hours racking brain trying figure out why works when on 1 page, not work when move different page. guessing may have corrupted or not addressing proper name of object?

 

please help!

 

frustrated , helpless near chicago!

 

taylor t

 

 

by moving object page, , possibly different subform you've broken reference field you're trying operate on.

 

you can check when test in acrobat, make sure console activated (ctrl-j) , when test should error message in console tells what's going on.

 

i'm guessing it's reference cmbcurrency isn't working?

 

the easiest way qualified reference field use script editor. script editor open script you're working on, navigate view can see field you're trying (don't click on or you'll lose focus of script). click in script editor want reference go , hold down ctrl key , mouse on field want, mouse cursor should change v, click on field - should insert proper reference.



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support