4 Replies Latest reply on Apr 17, 2015 9:06 AM by thomasr20883479

    Conditional Button Reveal

    thomasr20883479

      Hello. Looking for help with some fundamentals. Thanks in advance.

       

      My goal is to show a fourth button after three others have been clicked.

       

      Within each of the three button click events I have code like this:

       

      sym.setVariable("btn1Clicked", true);

      var btn1 = sym.getVariable("btn1Clicked");

       

      Within compositionReady I have this code:

       

      sym.$("simpleButton").hide();

       

      if (sym.btn1 == true && sym.btn2 == true && sym.btn3 == true) {

        sym.$("simpleButton").show();

        alert("Hello World!");

      }