3 Replies Latest reply on Jan 23, 2013 7:47 AM by try67

    Form Validation Script: Alert if value 2 (less 10%) is greater than value 1


      I am trying to enter a validation script that will provide an alert if the user enters a value that, less 10%, exceeds the value of another cell.  I know the following script works for in a 'greater than' scenario, but I cannot figure out how to inject the 10% part.  Here is what I have:





      var v1 = +getfield("LessPrevApp").value;var v2 = +event.value;if(v2>v1){


      app.alert("The sum of all items in Column D must be less than the amount entered in Previous Applications provided on Page 1.  Please revise.",1);