3 Replies Latest reply on Aug 10, 2011 9:15 AM by gkaiseril

    Value Range Script (Part 2)

    LLNunez

      How can I, within the below script, allow for the value to be left blank or enter 0 and not get an error for the value range set? I only want users to either enter a value within that range or, if left blank or the field is equal to zero, they will not be prompted to enter a value within the specified range.

       

      if((event.value >= .25) && (event.value <= 1.75)){

      //Valid

      } else {

      app.alert("ERROR: Please choose a value within .25 and 1.75.", 3);

      event.rc = false; 

      }

       

       

      Thanks to all in advance!