2 Replies Latest reply on Dec 2, 2015 4:41 PM by craigf81435330

    how do I get a switch statement to work in an Acrobat (not LiveCycle!) form?

    craigf81435330

      For starters, where does this script go?

       

      var cat = this.getField("Combo Box 1");

      var color = this.getField("Text Field 1");

       

      switch(cat) {

          case "Fletcher":

          color = "Orange";

          break;

          case "Mabel":

          color = "Black";

          break;

          case "Mister Gray":

          color = "Gray";

          break;

          default:

          color = "Must be a dog";

          break;

        }