8 Replies Latest reply on Apr 4, 2013 11:38 AM by sparrowce

    Syntax Error on if/else statement

    sparrowce Level 1

      In Adobe PDF form, trying to set up a javascript on the mouse exit event of a table column 2, row 1 that if they enter a quantity, it will add a number to the Item number column to the left.  Each row/quantity would have similar code, but am getting a "SyntaxError: missing ; before statement 2: at line 3" error.  Item No.0 is the name of 1st column (respectively per row, Item No.1, 2, etc.).  What am I doing wrong?  Thank you!

       

      Here is my code:

       

       

      if ($.isNull)
        {Item No.0 =  "";}
      else
        {Item No.0 = "1";}