<?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: Is it possible to disallow a null attribute with contingent attribute rules? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/is-it-possible-to-disallow-a-null-attribute-with/m-p/1241274#M63428</link>
    <description>&lt;P&gt;You should be able to build an attribute rule for this.&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/constraint-attribute-rules.htm" target="_blank" rel="noopener"&gt;Constraint attribute rules—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Something like this might would work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// constraint rule for a field that is non-nullable
// Triggers: Insert, Update
if($feature.status == "Approved") &amp;amp;&amp;amp; IsEmpty($feature.ApprovedBy){return false}
return true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 18:52:33 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-12-14T18:52:33Z</dc:date>
    <item>
      <title>Is it possible to disallow a null attribute with contingent attribute rules?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/is-it-possible-to-disallow-a-null-attribute-with/m-p/1240760#M63386</link>
      <description>&lt;P&gt;I have a feature class that has an attribute called "status", and another attribute called "approved by". Obviously, when something is in the planning stage, I want "approved by" to remain null. But when the status changes to "approved", I want to require some value in "approved by".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't care what the user puts in that space--there are too many possibilities to create a list of domains. But I do want to require that&amp;nbsp;&lt;EM&gt;something&lt;/EM&gt; is put there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using contingent values, I can require that the "Approved by" value is &amp;lt;ANY&amp;gt; when "Status" changes to approved. But a null value seems to pass the &amp;lt;ANY&amp;gt; test.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to require a value in "Approved by" if and only if "Status" is set to "Approved"?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 20:12:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/is-it-possible-to-disallow-a-null-attribute-with/m-p/1240760#M63386</guid>
      <dc:creator>LLCCG</dc:creator>
      <dc:date>2022-12-13T20:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to disallow a null attribute with contingent attribute rules?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/is-it-possible-to-disallow-a-null-attribute-with/m-p/1241274#M63428</link>
      <description>&lt;P&gt;You should be able to build an attribute rule for this.&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/constraint-attribute-rules.htm" target="_blank" rel="noopener"&gt;Constraint attribute rules—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Something like this might would work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// constraint rule for a field that is non-nullable
// Triggers: Insert, Update
if($feature.status == "Approved") &amp;amp;&amp;amp; IsEmpty($feature.ApprovedBy){return false}
return true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 18:52:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/is-it-possible-to-disallow-a-null-attribute-with/m-p/1241274#M63428</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-12-14T18:52:33Z</dc:date>
    </item>
  </channel>
</rss>

