Should be something simple I'm missing but having difficulty setting the property an html element. The sample below is not working as expected -- I can click the element and it seems to execute when it should be "disabled".
This is the widget.html:
<div class="workflow-step refine-application-boundaries" id="refine-button">
<div class="jimu-btn workflow-step-title" data-dojo-attach-event="click:activateRefineApplicationBorderTool">2. Refine Boundaries</div>
</div>
This is the widget.js
startup: function () {
// called on startup.
document.getElementById("refine-button").disabled = true;
Solved! Go to Solution.
Thanks for that, Robert!
Ken, I took this post and implemented similar check to see if a feature exists but have it in a function that can be called when that button is clicked and evaluates to simply not execute based upon the count.
Thanks!