<?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 Can't Toggle Restraint Rules On and Off With Table in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/can-t-toggle-restraint-rules-on-and-off-with-table/m-p/1622759#M1785</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm having trouble making &lt;A href="https://community.esri.com/t5/attribute-rules-blog/how-to-toggle-constraint-and-calculation-attribute/bc-p/1622677#M39" target="_self"&gt;this&lt;/A&gt; work on a constraint rule. I've tested the sample data from that blog post in my workspace so I know that does work. Here's the arcade I'm working with:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//Start AR Check
//add a row in the aroptions table and set 1 or 0 to  enable or disable the rules
var option = first(featuresetbyname($datastore, "Attribute_Rule_Options"))
if (option != null) if (option.EnableConstraintRules == 0) return true;
//End AR Check

if (!IsEmpty($feature.assetid) &amp;amp;&amp;amp; !Equals($feature.assetid, $originalFeature.assetid)) {
    return false; // Prevent the update
} else if (IsEmpty($feature.assetid)){
    return false;
}
else {
    return true; // Allow the update
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jun 2025 17:35:31 GMT</pubDate>
    <dc:creator>LeviCecil</dc:creator>
    <dc:date>2025-06-11T17:35:31Z</dc:date>
    <item>
      <title>Can't Toggle Restraint Rules On and Off With Table</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/can-t-toggle-restraint-rules-on-and-off-with-table/m-p/1622759#M1785</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm having trouble making &lt;A href="https://community.esri.com/t5/attribute-rules-blog/how-to-toggle-constraint-and-calculation-attribute/bc-p/1622677#M39" target="_self"&gt;this&lt;/A&gt; work on a constraint rule. I've tested the sample data from that blog post in my workspace so I know that does work. Here's the arcade I'm working with:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//Start AR Check
//add a row in the aroptions table and set 1 or 0 to  enable or disable the rules
var option = first(featuresetbyname($datastore, "Attribute_Rule_Options"))
if (option != null) if (option.EnableConstraintRules == 0) return true;
//End AR Check

if (!IsEmpty($feature.assetid) &amp;amp;&amp;amp; !Equals($feature.assetid, $originalFeature.assetid)) {
    return false; // Prevent the update
} else if (IsEmpty($feature.assetid)){
    return false;
}
else {
    return true; // Allow the update
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 17:35:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/can-t-toggle-restraint-rules-on-and-off-with-table/m-p/1622759#M1785</guid>
      <dc:creator>LeviCecil</dc:creator>
      <dc:date>2025-06-11T17:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Toggle Restraint Rules On and Off With Table</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/can-t-toggle-restraint-rules-on-and-off-with-table/m-p/1622842#M1786</link>
      <description>&lt;P&gt;Nevermind, figured it out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 20:21:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/can-t-toggle-restraint-rules-on-and-off-with-table/m-p/1622842#M1786</guid>
      <dc:creator>LeviCecil</dc:creator>
      <dc:date>2025-06-11T20:21:14Z</dc:date>
    </item>
  </channel>
</rss>

