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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Dean
    New Member
    • Oct 2011
    • 1

    #1

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

    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:
    Code:
       form1.Page1.LastName::change - (JavaScript, client)
         form1.SelectionPage.LastName.value=this.value;
    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):Pa ge1[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
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    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.

    Comment

    Working...