7 Replies Latest reply on May 7, 2014 4:50 PM by gkaiseril

    Only calculate if "Variable" is present

    Chaye28 Level 1

      Like many on this forum, I just started playing with javascript to make our forms smarter. I am dealing with a not so simple equation where there is only one field of input and the rest of the equation is written in. Here is my equation:


      "DraftTempPost" is the only input box.





      The problem I am having is that when the field "DraftTempPost" is blank, the field where my equation is located it shows  -2.75.


      How can I write a script that will only run the calculation when "DraftTempPost" has a value that is greater than 1?
      Thank you for all of your help.