I have a custom widget settings file that is calling dijit.registry.byId on a textbox that I know exists, but the function is returning undefined. This is occurring in the settings startup function and only began failing when I migrated from WAB2.7 to 2.8.
Snippet
startup: function () {
console.log('startUp');
this.inherited(arguments);
parser.parse();
var textNode = registry.byId("maxZoomTextBox");
if (textNode)
textNode.set('value', this.config.maxZoom);
},
<div>
<label>${nls.maxZoomTextBoxLabel}</label>
<input id="maxZoomTextBox" data-dojo-type="dijit/form/TextBox" type="text" style="width:40px;"/>
<br />
<br />
<label>${nls.featurelayerTextBoxLabel}</label>
<br />
<div class="jimu-widget-clusterer-setting-layers-container" data-dojo-attach-point="layersContainer" id="layersContainerDiv">
</div>
<div class="jimu-btn add-featurelayer" data-dojo-attach-point="addFeaturelayer" data-dojo-attach-event="onclick:_onBtnAddFeaturelayerClicked">Add feature layer</div>
</div>
textNode always = undefined
Can anyone see what I'm doing wrong?