<?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: Can't set CHECKBOX to be a required field in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/can-t-set-checkbox-to-be-a-required-field/m-p/279783#M2038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Keith,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This behavior has been included by design as of ArcPad 7.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The CHECKBOX Control does not support the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;required&lt;/SPAN&gt;&lt;SPAN&gt; attribute because of the nature of the control (eg. can only be true/false, not null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The need for further clarification about the CheckBox Control behavior in the Customizing ArcPad Help has been noted by the ArcPad Dev Team and should be included in future versions of ArcPad and the new &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcpadstudio/10.0/help/index.html" rel="nofollow" target="_blank"&gt;Customizing ArcPad Online Help&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hannah&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2012 02:25:06 GMT</pubDate>
    <dc:creator>HannahFerrier</dc:creator>
    <dc:date>2012-10-02T02:25:06Z</dc:date>
    <item>
      <title>Can't set CHECKBOX to be a required field</title>
      <link>https://community.esri.com/t5/arcpad-questions/can-t-set-checkbox-to-be-a-required-field/m-p/279782#M2037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having trouble setting several checkboxes to "required". &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In Studio when I open my form the checkbox "required" property is grayed out. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The checkbox is False be default and I want to require the user to confirm they have checked a serial number before saving the form data. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a text field in the GDB and has a coded value domain that only allows True or False values. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Keith&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 15:59:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/can-t-set-checkbox-to-be-a-required-field/m-p/279782#M2037</guid>
      <dc:creator>KeithGanzenmuller</dc:creator>
      <dc:date>2012-10-01T15:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set CHECKBOX to be a required field</title>
      <link>https://community.esri.com/t5/arcpad-questions/can-t-set-checkbox-to-be-a-required-field/m-p/279783#M2038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Keith,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This behavior has been included by design as of ArcPad 7.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The CHECKBOX Control does not support the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;required&lt;/SPAN&gt;&lt;SPAN&gt; attribute because of the nature of the control (eg. can only be true/false, not null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The need for further clarification about the CheckBox Control behavior in the Customizing ArcPad Help has been noted by the ArcPad Dev Team and should be included in future versions of ArcPad and the new &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcpadstudio/10.0/help/index.html" rel="nofollow" target="_blank"&gt;Customizing ArcPad Online Help&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hannah&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 02:25:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/can-t-set-checkbox-to-be-a-required-field/m-p/279783#M2038</guid>
      <dc:creator>HannahFerrier</dc:creator>
      <dc:date>2012-10-02T02:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set CHECKBOX to be a required field</title>
      <link>https://community.esri.com/t5/arcpad-questions/can-t-set-checkbox-to-be-a-required-field/m-p/279784#M2039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Keith,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can force user to check the checkbox(es)&amp;nbsp; by using form/page validation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, on page 1 of your form, you have a checkbox control named "Check1".&amp;nbsp; This code below will help you get started:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have this subroutine somewhere in your VBScript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Sub ValidateChk(pThisEvent)
 Dim pControls
&amp;nbsp;&amp;nbsp; Dim pThisForm, pThisPage
&amp;nbsp; 
&amp;nbsp;&amp;nbsp; Set pThisPage = pThisEvent.Object
&amp;nbsp;&amp;nbsp; Set pThisForm = pThisPage.Parent
&amp;nbsp;&amp;nbsp; Set pControls = pThisForm.Pages("PAGE1").Controls

 If pControls.Item("Check1").Value = False Then
&amp;nbsp; ThisEvent.MessageText ="Checkbox is required."
&amp;nbsp; ThisEvent.Result = False
&amp;nbsp; Exit Sub
 End If
End Sub
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, under Page 1, OnValidate Event, call the subroutine above:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Call ValidateChk(ThisEvent)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:35:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/can-t-set-checkbox-to-be-a-required-field/m-p/279784#M2039</guid>
      <dc:creator>ThaiTruong</dc:creator>
      <dc:date>2021-12-11T13:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set CHECKBOX to be a required field</title>
      <link>https://community.esri.com/t5/arcpad-questions/can-t-set-checkbox-to-be-a-required-field/m-p/279785#M2040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Excellent, thanks for the code. That will do the trick.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 20:26:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/can-t-set-checkbox-to-be-a-required-field/m-p/279785#M2040</guid>
      <dc:creator>KeithGanzenmuller</dc:creator>
      <dc:date>2012-10-02T20:26:47Z</dc:date>
    </item>
  </channel>
</rss>

