1 Reply Latest reply on Oct 11, 2016 1:28 PM by try67

    How do you highlight a field if it's empty?

    niicoleloor Level 1

      I want to highlight or color a field when it's empty, how do you do it?

       

      I've been trying out this formula but I think it's not correct because there's a Syntax Error:

       

      var a1 = this.getField("FirstN");

      if (a1.value == null)

      {

      a1.style.backgroundColor = "yellow";

      }