1 Reply Latest reply on Nov 7, 2013 2:52 PM by try67



      Can anyone help , I’m running adobe XI. Java script runs when you check a box, but how do you prevent the same message appearing if you uncheck the same box, or can make a different message appear if you uncheck the same box?

        • 1. Re: Javascript
          try67 MVP & Adobe Community Professional

          You need to add an if-condition that checks the field's value. Something like this:


          if (event.target.value=="Off") {

               app.alert("Message for unchecked box.");

          } else {

               app.alert("Message for checked box.");