4 Replies Latest reply on Aug 4, 2009 11:46 AM by prwashburn

    Script for referencing text field on current page

    prwashburn Level 1

      Trying to write a script that would output to a textfield on the current page.  Here is the code i have so far.

       

      //Determine the Current Page

      var pNum = this.pageNum;
      myField.value = pNum;

       

      //Preserve existing field text
      var CurrentField
      CurrentField = getField("P"+ (this.pNum) + ".Minutes.P0.Text11").valueAsString;

       

      //Output to Textfield on current page.
      var myField = this.getField("P"+ (this.pNum) + ".Minutes.P0.Text11");
      myField.value = CurrentField + "Counsel report the Complaint to " + Complaint + " resolved.  " + Attorney + " to submit " + AttorneytoSubmitResponse + " within " + String(TimeToSubmit)+ " days.  " + FailureStatementResponse;

       

       

       

      Do i just have a syntax error or am i off in my logic?

       

      Thanks in advance.