<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to programmatically uncheck checkboxes? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168059#M15580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't realize you were using dojo's checkbox dijit. There are a couple of things you could try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, check to see if your line of code in your original post is inside of a dojo/domReady. Is it possible that you are referencing an object that does not exist yet? Keep in mind that some things (not necessarily this one) occur asynchronously. If you reference a dom element by id that hasn't rendered completely, there is no dom element to reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could add an onChange event to your checkbox. This documentation is pretty terrible but, &lt;A href="https://dojotoolkit.org/reference-guide/1.10/dijit/form/CheckBox.html#"&gt;https://dojotoolkit.org/reference-guide/1.10/dijit/form/CheckBox.html#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would sooner use straight up javascript (or jQuery) create checkbox before using a dojo dijit for a dom element like that... especially after I played with the example on dojotoolkit.org for a little bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Feb 2016 17:11:00 GMT</pubDate>
    <dc:creator>TyroneBiggums</dc:creator>
    <dc:date>2016-02-18T17:11:00Z</dc:date>
    <item>
      <title>how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168049#M15570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, I'm new to the Javascript API and just trying to programmatically uncheck checkboxes.&amp;nbsp; An example of my code (using a checkbox with id "slrbxC") is::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;document.getElementbyId("slrbxC").checked = false;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the checkbox is not unchecking.&amp;nbsp; Is there some other code I need to add to make this happen?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 15:58:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168049#M15570</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2016-02-17T15:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168050#M15571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14557249542548992 jive_text_macro" data-renderedposition="92_8_912_16" jivemacro_uid="_14557249542548992" modifiedtitle="true"&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;document.getElementById("slrbxC").checked = false;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, "By" in "getElementById" should be capitalized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 16:04:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168050#M15571</guid>
      <dc:creator>RyanSellman</dc:creator>
      <dc:date>2016-02-17T16:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168051#M15572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Ryan, my typo in my post here but yes I did have it capitalized in my code...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 16:07:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168051#M15572</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2016-02-17T16:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168052#M15573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You generally have to change a property with the "set" method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;document.getElementById(&lt;SPAN class="string"&gt;"slrbxC").set("checked", false);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 16:14:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168052#M15573</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2016-02-17T16:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168053#M15574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you are doing (aside from the aforementioned typo) is correct...so it may be a problem with the ID value you're passing.&amp;nbsp; If you're using ASP.NET or something similar, an ID you assign can be transformed with an added prefix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In place of the line you have, try this below.&amp;nbsp; It'll let know what the actual ID is if this is the case.&amp;nbsp; If you get the "element not found" alert, then it couldn't find the checkbox at all, which is a different problem altogether...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var inputs = document.getElementsByTagName("INPUT");
var found = false;
var input;

for (var x = 0; x &amp;lt; inputs.length; x++) {
 input = inputs&lt;X&gt;;&lt;/X&gt;
 if ((input.type) &amp;amp;&amp;amp; (input.type.toLowerCase() == "check") &amp;amp;&amp;amp; (input.id.indexOf("slrbxC") &amp;gt;= 0)) {
&amp;nbsp; input.checked = false;
&amp;nbsp; alert("Set...id = [" + input.id + "]");
&amp;nbsp; found = true;
&amp;nbsp; break;
 }
}

if (!found)
 alert("element not found...");&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:45:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168053#M15574</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2021-12-11T08:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168054#M15575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aside from your typo, your code should work as long as the ID property is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// Either of these should work
document.getElementById("myCheckBox").checked = false;
document.getElementById("myCheckBox").removeAttribute("checked");&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make sure you have the ID correct, this code snippet will list all of the checked items and log their ids to the console. (If you're using IE 11 or below, you'll need to use a for loop instead of Array.from.)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var checkedItems = document.querySelectorAll(":checked");
Array.from(checkedItems, function(cb){
&amp;nbsp;&amp;nbsp;&amp;nbsp; console.debug(cb.id);
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:45:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168054#M15575</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2021-12-11T08:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168055#M15576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, you should use the syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dijit.byId("slrbxC")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the reference of the checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a working sample: &lt;A href="http://jsbin.com/jinoru/edit?html,output" title="http://jsbin.com/jinoru/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:33:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168055#M15576</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2016-02-17T20:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168056#M15577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try to use dev tools (F12) and make sure that your ID is correct once your stuff is running.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 12:06:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168056#M15577</guid>
      <dc:creator>TyroneBiggums</dc:creator>
      <dc:date>2016-02-18T12:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168057#M15578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appreciate the tips from everyone!&amp;nbsp; Based on the code given above, apparently it's not finding the id.&amp;nbsp; I haven't learned to use the debugging tools yet but before digging into that, here's my check box declaration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var slrBoxC = new CheckBox({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; id: "slrbxC"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; name: "slrbxC"&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did I do this wrong somehow? shouldn't the id value be "slrbxC" or am I missing something? Thanks again..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 16:33:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168057#M15578</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2016-02-18T16:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168058#M15579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If using the code from my &lt;A href="http://jsbin.com/jinoru/1/edit?html,output"&gt;example&lt;/A&gt; doesn't work, can you post an example of your code that shows the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 16:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168058#M15579</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2016-02-18T16:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168059#M15580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't realize you were using dojo's checkbox dijit. There are a couple of things you could try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, check to see if your line of code in your original post is inside of a dojo/domReady. Is it possible that you are referencing an object that does not exist yet? Keep in mind that some things (not necessarily this one) occur asynchronously. If you reference a dom element by id that hasn't rendered completely, there is no dom element to reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could add an onChange event to your checkbox. This documentation is pretty terrible but, &lt;A href="https://dojotoolkit.org/reference-guide/1.10/dijit/form/CheckBox.html#"&gt;https://dojotoolkit.org/reference-guide/1.10/dijit/form/CheckBox.html#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would sooner use straight up javascript (or jQuery) create checkbox before using a dojo dijit for a dom element like that... especially after I played with the example on dojotoolkit.org for a little bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 17:11:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168059#M15580</guid>
      <dc:creator>TyroneBiggums</dc:creator>
      <dc:date>2016-02-18T17:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168060#M15581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Ken!&amp;nbsp; Appreciate your time.&amp;nbsp; Well I guess this is another question:&amp;nbsp; I'd like to post my code but I'm new to GeoNet and I don't see how to post blocks of code that are easy to read.&amp;nbsp; The old ESRI forums had a "code" button that wrapped your code up and made it easy to post and read there but I don't see anything like that here.&amp;nbsp; Am I missing something?&amp;nbsp; Sorry, thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 17:11:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168060#M15581</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2016-02-18T17:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168061#M15582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Click reply.&lt;/P&gt;&lt;P&gt;Click "use advanced editor" on the upper right of your little input window.&lt;/P&gt;&lt;P&gt;Click the &amp;gt;&amp;gt;.&lt;/P&gt;&lt;P&gt;Select a javascript.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 17:15:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168061#M15582</guid>
      <dc:creator>TyroneBiggums</dc:creator>
      <dc:date>2016-02-18T17:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168062#M15583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also did not realize you were referring to the Dojo checkbox dijit rather than a regular HTML checkbox. The sample below shows how each type of checkbox can be programmatically checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with @Tyrone Biggums in that I would just use a regular HTML checkbox rather than the Dojo checkbox, as the Dojo checkbox just adds an extra layer of complexity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;input type="checkbox" id="dojoCheckbox" checked="checked" /&amp;gt;
&amp;lt;input type="checkbox" id="normalCheckbox" checked="checked" /&amp;gt;
&amp;lt;button type="button" id="theButton"&amp;gt;
&amp;nbsp; Toggle the checkboxes
&amp;lt;/button&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;require(["dijit/form/CheckBox", "dijit/registry"], function(CheckBox, registry) {
&amp;nbsp; // Create the Dojo checkbox
&amp;nbsp; var cb = new CheckBox({
&amp;nbsp;&amp;nbsp;&amp;nbsp; checked: true
&amp;nbsp; }, "dojoCheckbox");
&amp;nbsp; // Get a reference to the button.
&amp;nbsp; var b = document.getElementById("theButton");

&amp;nbsp; // set the button click event
&amp;nbsp; b.onclick = function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Use the registry to get the checkbox dijit.
&amp;nbsp;&amp;nbsp;&amp;nbsp; cb = registry.byId("dojoCheckbox");
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set the dojo checkboxes "checked" property to be 
&amp;nbsp;&amp;nbsp;&amp;nbsp; // opposite what it currently is.
&amp;nbsp;&amp;nbsp;&amp;nbsp; cb.set("checked", !cb.checked);
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Get the regular checkbox and check it.
&amp;nbsp;&amp;nbsp;&amp;nbsp; var ncb = document.getElementById("normalCheckbox");
&amp;nbsp;&amp;nbsp;&amp;nbsp; ncb.checked = !ncb.checked;
&amp;nbsp; };
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:45:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168062#M15583</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2021-12-11T08:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168063#M15584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The way you are declaring the checkbox, it looks like it is a dojo checkbox and would more than likely need to be access with &lt;A href="https://community.esri.com/migrated-users/3856"&gt;Ken Buja&lt;/A&gt; solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dijit.byId("slrbxC").set("checked", false);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 18:09:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168063#M15584</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2016-02-18T18:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168064#M15585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The other way you can do this is to put it on a site like &lt;A href="http://jsbin.com/?html,output"&gt;JSBin&lt;/A&gt; or &lt;A href="https://jsfiddle.net/"&gt;JSFiddle&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 18:15:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168064#M15585</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2016-02-18T18:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically uncheck checkboxes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168065#M15586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks much to Jeff, Tyrone, Ken, and everyone else for the help!&amp;nbsp; After much trial and error, this is the syntax that worked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var slrBoxC = new Checkbox({&lt;/P&gt;&lt;P&gt;&amp;nbsp; id: "slrbxC",&lt;/P&gt;&lt;P&gt;&amp;nbsp; name: "slrbxC"&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;slrBoxC = registry.byId("slrbxC");&lt;/P&gt;&lt;P&gt;slrBoxC.set("checked", false);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 20:00:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-uncheck-checkboxes/m-p/168065#M15586</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2016-02-18T20:00:03Z</dc:date>
    </item>
  </channel>
</rss>

