Tom,
The only option with out code changes is to change the search layer to another and then back. If you want to make some code changes than you can follow the steps below:
Widget.js changes:
Add new function
clearFields: function () {
if(this.AttributeLayerIndex || this.AttributeLayerIndex === 0){
this.onAttributeLayerChange(this.AttributeLayerIndex);
}
},
Add this line to _initDrawBox function after all the other this.own(on.... Lines:
this.own(on(this.btnClear4, "click", lang.hitch(this, this.clearFields, true)));
Widget.html
Add this new line of code after line 52 in the Widget.html:
<a style="float:right; margin-right:10px" href="#" data-dojo-attach-point="btnClear4">${nls.clearfields}</a>
nls/strings.js
Add this new line to the nls/strings.js after line 11:
clearfields: "Clear Fields",