4 Replies Latest reply on Feb 8, 2011 1:31 AM by MadMich

    fill color

    MadMich Level 1

      I seem to be getting random results with this fillColor script.

       

      var oField = this.getField("Text1"); // get "My Field Name" object

       

      if (oField.value == "3") // test field object's value
      {
      oField.fillColor = color.yellow; // set field object's fill color

       

      }else if (oField.value == "6") // test field object's value
      {
      oField.fillColor = color.red; // set field object's fill color

       

      }else
      {
      oField.fillColor = color.white; // set field object's fill color
      }

       

       

      I can't see any obvious probelm. please help!