7 Replies Latest reply on Oct 23, 2012 2:06 PM by George_Johnson

    Script where the zero doesn't show when no value is selected, shows when a zero value is selected

    FBALTD

      how do I write a calculation script where the zero doesn't show when no values are selected, but when a zero value field is selected as part of the calculatio that zero will show?

      Option 1 has a score value of 0

      Option 2 has a score value of 5

      When someone selects option 1, I want the 0 to appear to the scoring cell.

       

      Here's the script I have so far:

       

      if(event.value == 0 | event.value == '') event.value = '';