<?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 do UNcheck a checkbox in a form? in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348060#M2508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm surprised that you are having difficulty changing this as you should be able to tell ArcPad whether the box should be checked or not via the default value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check box controls should be used on text fields, as the values of True and False get recorded to the attribute table.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The default value can be changed either via the control properties or by navigating the tree structure of the layer definition.&amp;nbsp; I've included screenshots of both of these locations.&amp;nbsp; You should type the words True and False in as shown here.&amp;nbsp; Do not put them between double quotes, such as "True".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After you've gone back and made sure that your axf looks like the screenshots I've provided are you still seeing that the check boxes are checked on by default?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jun 2011 16:40:32 GMT</pubDate>
    <dc:creator>TimHopper</dc:creator>
    <dc:date>2011-06-22T16:40:32Z</dc:date>
    <item>
      <title>How do UNcheck a checkbox in a form?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348059#M2507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm creating a form with check boxes in ArcPad Studio (arcpad 10). Whenever the form runs on the desktop or Trimble the boxes are checked. I want the default set to uncheck. I typed in "False" in the default value field but that didn't work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I have to write code? Surely, I don't have to write code do I? The arcpad help was VB based.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 15:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348059#M2507</guid>
      <dc:creator>DAVIDBISHOP</dc:creator>
      <dc:date>2011-06-22T15:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do UNcheck a checkbox in a form?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348060#M2508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm surprised that you are having difficulty changing this as you should be able to tell ArcPad whether the box should be checked or not via the default value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check box controls should be used on text fields, as the values of True and False get recorded to the attribute table.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The default value can be changed either via the control properties or by navigating the tree structure of the layer definition.&amp;nbsp; I've included screenshots of both of these locations.&amp;nbsp; You should type the words True and False in as shown here.&amp;nbsp; Do not put them between double quotes, such as "True".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After you've gone back and made sure that your axf looks like the screenshots I've provided are you still seeing that the check boxes are checked on by default?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 16:40:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348060#M2508</guid>
      <dc:creator>TimHopper</dc:creator>
      <dc:date>2011-06-22T16:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do UNcheck a checkbox in a form?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348061#M2509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tim, do I have to have a form based on the axf file? I was creating a form using a .shp file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did it without the quotes and it didn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm surprised that you are having difficulty changing this as you should be able to tell ArcPad whether the box should be checked or not via the default value.&lt;BR /&gt;&lt;BR /&gt;Check box controls should be used on text fields, as the values of True and False get recorded to the attribute table.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;The default value can be changed either via the control properties or by navigating the tree structure of the layer definition.&amp;nbsp; I've included screenshots of both of these locations.&amp;nbsp; You should type the words True and False in as shown here.&amp;nbsp; Do not put them between double quotes, such as "True".&lt;BR /&gt;&lt;BR /&gt;After you've gone back and made sure that your axf looks like the screenshots I've provided are you still seeing that the check boxes are checked on by default?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 17:04:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348061#M2509</guid>
      <dc:creator>DAVIDBISHOP</dc:creator>
      <dc:date>2011-06-22T17:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do UNcheck a checkbox in a form?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348062#M2510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;David,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This process should work regardless of if you are utilizing an axf file or a shapefile with an associated .apl layer definition file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've attached screenshots of the apl file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also attached a zip file containing a test shapefile and .apl file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My guess is that you've got something going on with your data. I would create a new shapefile and test with it to see if the behavior is any different.&amp;nbsp; Look over the attached files, perhaps you will be able to determine what's going wrong with yours.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 22:30:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348062#M2510</guid>
      <dc:creator>TimHopper</dc:creator>
      <dc:date>2011-06-22T22:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do UNcheck a checkbox in a form?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348063#M2511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've had the same problem. I didn't really put too much into figuring out why, i just scrapped the checkbox for now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tried setting default value to "False", but still reported "True".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running Nomad 800 with ArcPad 10.1 Windows Mobile6.1. I'll go back and check it out and see if I can get it to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 14:34:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348063#M2511</guid>
      <dc:creator>JasonTipton</dc:creator>
      <dc:date>2011-06-23T14:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do UNcheck a checkbox in a form?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348064#M2512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been looking into this a little further and have some additional insight.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For those of you who say that the False value is not working, is it not working for a brand new feature you create or is it not working when you open the feature properties for an existing feature?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you've set True and False default values for a checkbox control these will be honored when you create a new feature in ArcPad.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have existing features in your document with NULL values in those fields (perhaps you checked out data from ArcMap and those features didn't have any True or False value already listed) they will all have their checkbox controls set to True (checked on) if you open their feature properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This goes for shapefiles with empty cells and axf files which have actual NULL values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So.&amp;nbsp; If I modify a feature which doesn't have a True or False value in it already, why am I forced to choose between True or False?&amp;nbsp; Why can't I keep it as a NULL value?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Starting with ArcPad 7.1, checkbox controls allow for a "3 state control".&amp;nbsp; You can modify these controls to take values of True, False, or NULL.&amp;nbsp; By default, these checkbox controls are a 2 state control (True or False, no NULL values).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This can be modified in ArcPad Studio by adding the allownulls=True attribute to the checkbox control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the catch:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For some reason (we'll find that out, possibly bug) the CHECKBOX control doesn't think that the allownulls attribute can be used.&amp;nbsp; However, it can be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look in the Customizing ArcPad help doc and look at the CHECKBOX control properties you'll see that the allownulls attribute is not listed under the Attribute Descriptions for CHECKBOX.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The workaround is to manually add the allownulls attribute to the checkbox control through the tree view of the layer definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the biggest catch:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because the checkbox control doesn't think it can use the allownulls attribute, if you actually open up the EDITFORM for that particular layer it will wipe out all of the allownulls attributes that you've added to your checkbox controls.&amp;nbsp; So yes, the allownulls attribute works properly as long as you don't open the EDITFORM after you've made the modification.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After you've set all of the checkboxes to be a 3 state control (by adding the allownulls=True attribute) when you open the feature properties of an existing feature (which has NULL values in the checkbox fields) the box will be checked on but grayed out.&amp;nbsp; A grayed out checkbox means that a NULL value will be entered.&amp;nbsp; You can then cycle through all three options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached is a screenshot of a checkbox control with this attribute added.&amp;nbsp; You would right-click on the &amp;lt;CHECKBOX&amp;gt; control and select "Add Attribute".&amp;nbsp; The Name will be allownulls and the Value will be True.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remember, after making this modification, don't open the EDITFORM!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- More info to follow -&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 20:21:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348064#M2512</guid>
      <dc:creator>TimHopper</dc:creator>
      <dc:date>2011-06-23T20:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do UNcheck a checkbox in a form?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348065#M2513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This issue has been logged as a software defect.&amp;nbsp; The ArcPad team will be looking into..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(a) The issue where existing features with NULL values automatically have their boxes checked on, instead of null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(b) the allowsnull attribute of the layer definition getting removed each time the edit form is opened.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the time being, you must utilize the workflow I included with my previous post (6/23) in order to cause the check boxes of existing features with null attributes to be unchecked when you open the feature properties.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 15:58:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348065#M2513</guid>
      <dc:creator>TimHopper</dc:creator>
      <dc:date>2011-07-07T15:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do UNcheck a checkbox in a form?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348066#M2514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It appears that this issue is still not fixed perhaps it is low on the problems list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if objRS.Fields("MAINDIR").Value = "" or objRS.Fields("MAINDIR").Value = "F"then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; msgbox "the field is: " + objRS.Fields("MAINDIR").Value + " Really it is!"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objEditForm.Pages("pge2").Controls("chkMainDir").value = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; objChkMainDir.value = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; end if&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even calling the control directly does not set the check box to false. There is a problem with the check box or the VBScript&amp;nbsp; is acting erratically.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 15:27:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348066#M2514</guid>
      <dc:creator>GuyBuller</dc:creator>
      <dc:date>2011-12-07T15:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do UNcheck a checkbox in a form?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348067#M2515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I use CheckBoxes all over and I made a little applet testing this out and to me, it seems that checkboxes works as intended.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Test it out using the enclosed applet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 07:26:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348067#M2515</guid>
      <dc:creator>RolfBroch</dc:creator>
      <dc:date>2011-12-09T07:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do UNcheck a checkbox in a form?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348068#M2516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I use checkboxes all over and they work fine. Check out the enclosed applet to see what I do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 07:36:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-do-uncheck-a-checkbox-in-a-form/m-p/348068#M2516</guid>
      <dc:creator>RolfBroch</dc:creator>
      <dc:date>2011-12-09T07:36:22Z</dc:date>
    </item>
  </channel>
</rss>

