<?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 Is It Possible to Change Back To OG Value During Edits in Arcade? in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/is-it-possible-to-change-back-to-og-value-during/m-p/1621352#M1776</link>
    <description>&lt;P&gt;I'm creating an attribute rule for a symbology label field to change when an asset type field is changed. I'm wondering if it's possible to store the original value and then revert to it if someone decides it's incorrect? I've tried storing the OG value as a variable and then returning that at the end of an IIF or When statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I've tried so far and it's not working:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var original_symbol = $originalFeature.symbol

if($feature.ASSETTYPE == 'Drop Manhole'){
  return 'MANHOLE_DRP';
} else {
 return original_symbol;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 20:33:18 GMT</pubDate>
    <dc:creator>LeviCecil</dc:creator>
    <dc:date>2025-06-05T20:33:18Z</dc:date>
    <item>
      <title>Is It Possible to Change Back To OG Value During Edits in Arcade?</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/is-it-possible-to-change-back-to-og-value-during/m-p/1621352#M1776</link>
      <description>&lt;P&gt;I'm creating an attribute rule for a symbology label field to change when an asset type field is changed. I'm wondering if it's possible to store the original value and then revert to it if someone decides it's incorrect? I've tried storing the OG value as a variable and then returning that at the end of an IIF or When statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I've tried so far and it's not working:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var original_symbol = $originalFeature.symbol

if($feature.ASSETTYPE == 'Drop Manhole'){
  return 'MANHOLE_DRP';
} else {
 return original_symbol;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 20:33:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/is-it-possible-to-change-back-to-og-value-during/m-p/1621352#M1776</guid>
      <dc:creator>LeviCecil</dc:creator>
      <dc:date>2025-06-05T20:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is It Possible to Change Back To OG Value During Edits in Arcade?</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/is-it-possible-to-change-back-to-og-value-during/m-p/1621374#M1777</link>
      <description>&lt;P&gt;If you need to store the original data between edits, you'll need an extra field to log that with one rule, then use another rule to retrieve it later.&lt;/P&gt;&lt;P&gt;If it's all happening in the span of the same edit, you can usually just return without a value and the attribute rule won't edit anything.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 21:36:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/is-it-possible-to-change-back-to-og-value-during/m-p/1621374#M1777</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-06-05T21:36:29Z</dc:date>
    </item>
  </channel>
</rss>

