<?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: Customising ArcPad Edit Forms in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/customising-arcpad-edit-forms/m-p/664793#M4807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dave,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, the Page Object does not have any sort of "enabled" or "visible" property.&amp;nbsp; Unless someone else chimes in, I don't know of a way to hide a page via code.&amp;nbsp; The Control Object, however, does have a property to disable or hide the control.&amp;nbsp; Perhaps you could hide or disable all of the controls on a page when the check box is checked?&amp;nbsp; You could also throw in a message box letting them know they aren't required to fill out whatever page it is you want to hide.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, the ArcPad object model uses vbscript or jscript, not ArcObjects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before you can access the controls on a page that you aren't currently on, you'll need to activate that page.&amp;nbsp; After hiding the controls you can then re-activate the page you want them to be on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Give this a try on the OnClick event of the checkbox:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ThisEvent.Object.Parent.Parent.Pages("Page2").Activate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Application.Map.Layers("Point").Forms("EDITFORM").Pages("PAGE2").Controls("Edit1").Visible = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Application.Map.Layers("Point").Forms("EDITFORM").Pages("PAGE1").Activate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MessageBox("Page 2 not required")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, you could use ...Controls("Edit1").Enabled = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "enabled" property would simply gray out the control and won't allow you to edit it.&amp;nbsp; My example removes the control completely from the page which would result in an empty page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe this is a wild workaround, but it's the best I could do off the top of my head.&amp;nbsp; I've attached an axf file with the code above, hopefully that will help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One last thing: setting the current state of a checkbox (checked, unchecked) when a form opens is a little buggy.&amp;nbsp; Check out the following thread which might help with that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/33253-How-do-UNcheck-a-checkbox-in-a-form?highlight=arcpad+checkbox"&gt;How to UNcheck a checkbox in a form?&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps this will get you started.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2012 15:43:33 GMT</pubDate>
    <dc:creator>TimHopper</dc:creator>
    <dc:date>2012-02-13T15:43:33Z</dc:date>
    <item>
      <title>Customising ArcPad Edit Forms</title>
      <link>https://community.esri.com/t5/arcpad-questions/customising-arcpad-edit-forms/m-p/664792#M4806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We've got an ArcPad 10 Edit form that we want to customise so that if a tick box is ticked it will prevent the user from accessing one of the Pages (tabs), is that possible within ArcObjects and is there sample code to enable this to be accomplished. I'm no programmer but one of my team might be able to hash it together if given a starting point.&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;Dave.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 13:23:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/customising-arcpad-edit-forms/m-p/664792#M4806</guid>
      <dc:creator>DavidHume</dc:creator>
      <dc:date>2012-02-13T13:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Customising ArcPad Edit Forms</title>
      <link>https://community.esri.com/t5/arcpad-questions/customising-arcpad-edit-forms/m-p/664793#M4807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dave,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, the Page Object does not have any sort of "enabled" or "visible" property.&amp;nbsp; Unless someone else chimes in, I don't know of a way to hide a page via code.&amp;nbsp; The Control Object, however, does have a property to disable or hide the control.&amp;nbsp; Perhaps you could hide or disable all of the controls on a page when the check box is checked?&amp;nbsp; You could also throw in a message box letting them know they aren't required to fill out whatever page it is you want to hide.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, the ArcPad object model uses vbscript or jscript, not ArcObjects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before you can access the controls on a page that you aren't currently on, you'll need to activate that page.&amp;nbsp; After hiding the controls you can then re-activate the page you want them to be on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Give this a try on the OnClick event of the checkbox:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ThisEvent.Object.Parent.Parent.Pages("Page2").Activate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Application.Map.Layers("Point").Forms("EDITFORM").Pages("PAGE2").Controls("Edit1").Visible = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Application.Map.Layers("Point").Forms("EDITFORM").Pages("PAGE1").Activate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MessageBox("Page 2 not required")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, you could use ...Controls("Edit1").Enabled = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "enabled" property would simply gray out the control and won't allow you to edit it.&amp;nbsp; My example removes the control completely from the page which would result in an empty page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe this is a wild workaround, but it's the best I could do off the top of my head.&amp;nbsp; I've attached an axf file with the code above, hopefully that will help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One last thing: setting the current state of a checkbox (checked, unchecked) when a form opens is a little buggy.&amp;nbsp; Check out the following thread which might help with that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/33253-How-do-UNcheck-a-checkbox-in-a-form?highlight=arcpad+checkbox"&gt;How to UNcheck a checkbox in a form?&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps this will get you started.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 15:43:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/customising-arcpad-edit-forms/m-p/664793#M4807</guid>
      <dc:creator>TimHopper</dc:creator>
      <dc:date>2012-02-13T15:43:33Z</dc:date>
    </item>
  </channel>
</rss>

