1 Reply Latest reply on Oct 3, 2017 5:01 AM by Abambo

    Adobe Scripting

    emmablisa Level 1

      I am new to adobe form java script.

      Suppose I want to multiply two columns (i.e columA and columnB and output will be displayed in total_A )

      In total_A used the script

      event.value = ( this.getField("columA").value * this.getField("columnB").value )

      and when I enter values in both columA and columB then i'll get the correct result .

      but if columnA is empty then i'll get 0 (zero) , as multiplication by zero always returns zero . I want that if columA doesn't have value then script will convert that value to 1 and then multiply by columB