By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,238 Members | 1,518 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,238 IT Pros & Developers. It's quick & easy.

LiveCycle Javascript - Why: Exception in line 1 of function top_level, script

P: 1
Hello,

I'm having a devilish time with Javascript in LiveCycle. The latest is something that should be totally simple.

On a multipage form (with many, many fields and text items), I want to code the LastName field in the "Page1" to replicate changes to the LastName field on ("SelectionPage").

I use the following code in the Page1:LastName::change event:
Expand|Select|Wrap|Line Numbers
  1.    form1.Page1.LastName::change - (JavaScript, client)
  2.      form1.SelectionPage.LastName.value=this.value;
  3.  
I made sure to use <Ctl>+<Shift> to insert the SOM of the target LastName field.

When I switch to Preview PDF, and enter a character in the Page1 LastName field, the debugger opens with the following:

Debugger Error:
Exception in line 1 of function top_level, script XFA:form1[0]:Page1[0]:LastName[0]:change

Caption at bottom of Debugger:
Unable to find source for XFA:form1(0):Page1[0]:LastName[0]:change

Anybody have any idea what I'm doing wrong here?

Many thanks in advance for any help you can provide.

Bob
Oct 10 '11 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
It's going to be difficult answering this question unless has some experience with LiveCycle scripting which seems to be different from standard JavaScript.

Try the links in this thread. Alternatively, search for "livecycle" in the search box above for other hints. Hope that helps.
Oct 13 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.