AnsweredAssumed Answered

Why won't my button display after query is run?

Question asked by csergent08 Champion on Jul 7, 2015
Latest reply on Jul 7, 2015 by csergent08

I have a button that is hidden on a form. The form is for sign supports. If there is more than related sign, my button should display, but it is not.


Here is an excerpt of the code-



<button id="btnRelatedSigns" type="button" style="visibility:hidden">Signs</button>




// display number of related records in console
                queryTask.executeForCount(query, function (count) {
                    if (count >= 1) {
                        document.getElementById("btnRelatedSigns").style.visiblity = "visible";
                    } else {
                        document.getElementById("btnRelatedSigns").style.visiblity = "hidden";


The code counts the related signs just fine, but does not display the button as visible.


Here is my project on github with the version related to this question: csergent45/streetSigns at e8bd20b75864c14e4df56589e4f9baa03db5c053 · GitHub