<?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: Attribute Rules constraint issue in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-constraint-issue/m-p/1085455#M156</link>
    <description>&lt;P&gt;Do you have more information about the issue, what is wrong with the script, or what the behavior of the script is unexpected?&lt;/P&gt;&lt;P&gt;Based on a cursory glance, I think you should be using the $originalfeature global to check if the edit that triggers the rule is changing the attribute for that field (name_id).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if ($feature.name_id !=$originalfeature.name_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Check out the blog here to learn more about the $originalfeature &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/originalfeature-new-attribute-rules-arcade-global/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/originalfeature-new-attribute-rules-arcade-global/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Aug 2021 19:31:36 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-08-03T19:31:36Z</dc:date>
    <item>
      <title>Attribute Rules constraint issue</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-constraint-issue/m-p/1085442#M154</link>
      <description>&lt;P&gt;Hi, Im trying to create a constraint that prevents a field (name_id) from being edited&lt;/P&gt;&lt;P&gt;I can't figure out what's wrong with this statement:&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ($feature.name_id !=$feature.name_id)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;return false;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else&amp;nbsp;&lt;/P&gt;&lt;P&gt;return true;&lt;/P&gt;&lt;P&gt;Thanks for the help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 18:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-constraint-issue/m-p/1085442#M154</guid>
      <dc:creator>V1212</dc:creator>
      <dc:date>2021-08-03T18:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rules constraint issue</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-constraint-issue/m-p/1085455#M156</link>
      <description>&lt;P&gt;Do you have more information about the issue, what is wrong with the script, or what the behavior of the script is unexpected?&lt;/P&gt;&lt;P&gt;Based on a cursory glance, I think you should be using the $originalfeature global to check if the edit that triggers the rule is changing the attribute for that field (name_id).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if ($feature.name_id !=$originalfeature.name_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Check out the blog here to learn more about the $originalfeature &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/originalfeature-new-attribute-rules-arcade-global/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/originalfeature-new-attribute-rules-arcade-global/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 19:31:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-constraint-issue/m-p/1085455#M156</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-08-03T19:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rules constraint issue</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-constraint-issue/m-p/1085457#M157</link>
      <description>&lt;P&gt;Thanks, thats exactly what I was looking for!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 19:36:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-constraint-issue/m-p/1085457#M157</guid>
      <dc:creator>V1212</dc:creator>
      <dc:date>2021-08-03T19:36:29Z</dc:date>
    </item>
  </channel>
</rss>

