<?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: Define a required field in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/define-a-required-field/m-p/223044#M9737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couldn't you use a value list with the default set to None&amp;nbsp; (ie None, choice1, choice2), then simply have the tool check for None.&amp;nbsp; If there is no selection (ie, None) then have the script fail to process anything and report why.&amp;nbsp; There doesn't appear to be any "setEnabled" option to disable the Run button for any of the tool types to prevent people simply hitting Run with defaullts showing.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Feb 2020 14:27:22 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2020-02-20T14:27:22Z</dc:date>
    <item>
      <title>Define a required field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/define-a-required-field/m-p/223041#M9734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to find a way to define a field that the user MUST fill before saving.&lt;/P&gt;&lt;P&gt;I have tested many options:&lt;/P&gt;&lt;P&gt;1) Mark the filed as not null&amp;nbsp;just make pro fill the field with some system default before save.&lt;/P&gt;&lt;P&gt;2) Use the option is required in the add field GP tools have no affect.&lt;/P&gt;&lt;P&gt;3) Trying to use constrain attribute field does not let me add a feature since the initial value is null (the user need to fill afterword). It is the first example here:&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/attribute-rule-script-expression.htm#ESRI_SECTION1_ADD30F3325964BCCA3AC298F03B37ACE" title="https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/attribute-rule-script-expression.htm#ESRI_SECTION1_ADD30F3325964BCCA3AC298F03B37ACE"&gt;Attribute rule script expression examples—Geodatabases | Documentation&lt;/A&gt;&amp;nbsp; but I am not finding the way to run it.&lt;/P&gt;&lt;P&gt;4) Trying validation rule fail too.&lt;/P&gt;&lt;P&gt;5) Giving default value (or use edit template with pre define value) does not do what I need - the user MUST enter a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it too much to ask for?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 07:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/define-a-required-field/m-p/223041#M9734</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2020-02-20T07:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Define a required field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/define-a-required-field/m-p/223042#M9735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;SPAN style="background-color: #ffffff;"&gt;Giving default value (or use edit template with pre define value) does not do what I need - the user MUST enter a value."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;How is that not meeting the need?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 13:37:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/define-a-required-field/m-p/223042#M9735</guid>
      <dc:creator>ThomasColson</dc:creator>
      <dc:date>2020-02-20T13:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Define a required field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/define-a-required-field/m-p/223043#M9736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you order a flight ticket you MUST say if you are a Male or Female. There is no default here and it is required field.&lt;/P&gt;&lt;P&gt;We need something similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 13:42:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/define-a-required-field/m-p/223043#M9736</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2020-02-20T13:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Define a required field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/define-a-required-field/m-p/223044#M9737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couldn't you use a value list with the default set to None&amp;nbsp; (ie None, choice1, choice2), then simply have the tool check for None.&amp;nbsp; If there is no selection (ie, None) then have the script fail to process anything and report why.&amp;nbsp; There doesn't appear to be any "setEnabled" option to disable the Run button for any of the tool types to prevent people simply hitting Run with defaullts showing.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 14:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/define-a-required-field/m-p/223044#M9737</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-02-20T14:27:22Z</dc:date>
    </item>
  </channel>
</rss>

