2 Replies Latest reply on May 22, 2013 3:48 PM by posey.shawn

    Hiding a button as a condition of a result.

    posey.shawn

      //Text23 is a calculation to determine if 3 or fewer checkboxes have been selected

      //everything works... the app.alerts, the variable, etc... except the presence=visible command

       

      The button "submitButton" is hidden.  The idea is that it will become visible only if three or fewer boxes are checked.

      This code runs when a button "checkButton" is mouse up.

       

      Ideas are welcomed.  Thank you.

       

       

      var choices=this.getField("Text23").value;

      app.alert("Value for choices is "+ choices);

       

      if (choices > 3)

      {

      app.alert("You have selected more than 3 choices.");

      end;

      }

      else

      {

      app.alert("You have selected 3 choices.");

      submitButton.presence="visible";

      };