Can you provide more code for context? I will try to help.
Here is where I create the content pane:
<div dojoType="dijit.layout.ContentPane" title="Biotics Data Subset" id="DijitID1">
<span style="padding:10px 0;">Select REACCH Data to view information</span>
<div id="toggle" name= "formName2" style="padding: 2px 2px;">
<form name="formName2">
Select Biotics Layer: <br>
<select name="options1e" id= "options1e" onChange="updatefields1(this.selectedIndex)">
<option selected>Select Layer</option>
<option value="Earthworm">Earthworm</option>
<option value="Hessian Fly">Hessian Fly</option>
<option value="Pan Trap">Pan Trap</option>
<option value="RLN">RLN</option>
<option value="Seed">Seed</option>
<option value="Suction Trap">Suction Trap</option>
<option value="Sweep Net">Sweep Net</option>
<option value="Wireworm">Wireworm</option>
</select><br>
Select Field: <br>
<select name="options2e" id="options2e" >
onClick="alert(this.options[this.options.selectedIndex].value)">
</select><br>
Field is less than, greater than, or equal to:
<select id="options3e" >
<option value="Less Than">Less Than</option>
<option value="Greater Than">Greater Than</option>
<option value="Equal To">Equal To</option>
</select><br>
Enter Quantity:<br>
<input type="text" name="Quantity" id= "options4e" ><br>
<br> <button dojoType="dijit.form.Button" onClick="executeGP();">Extract Data</button>
</form>
Then when the executeGP succeeds it goes to this function:function onTaskResultComplete(paramResult) {
var featureSet = paramResult.value.url;
dijit.byId("DijitID1").setContent(
"Biotics Layer: "+bioticsLayer+"<br>"+
"Biotics Field: "+bioticsField+" is "+sign+" "+quantity+"<br>"+
"<br><a href=" + featureSet + ">Click here to download the data</a><br><br>"+
'<form><button dojoType="dijit.form.Button" onClick="ResetContent()">Refresh</button><br></form>');
And then I click on the refresh button, which goes to this function: function ResetContent(){
dijit.byId('DijitID1').refresh();
But instead of just refreshing the content pane to its original content, it inserts the contents of all the content panes in the entire html document into this content pane. I also am getting these errors in the console box:Error parsing in _ContentSetter#Setter_DijitID1_3 Error {} Error undefined running custom onLoad code: This deferred has already been resolved Let me know if you have any solutions. Thank you very much!