<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Comparing Current and Updated Values</title><link>https://community.appian.com/discussions/f/user-interface/23335/comparing-current-and-updated-values</link><description>Hello newbie here I have a task that I need to compare the current values to updated values . Once the Coporate Name and Merchant Name have a difference it will pop up a confirmation messager after clicking submit. 
 
 I hoped you can help me. Thank you</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Comparing Current and Updated Values</title><link>https://community.appian.com/thread/89613?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 06:53:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:20531d6a-d039-4e9e-bab2-8dc3131cd0d3</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;For this simple case, create two local variables to store the rule input values. Make sure to use a!refreshvariables to disable refresh.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!oldValue: a!refreshVariable(
    value: ri!purchaseRequest.specialInstructions,
    refreshOnReferencedVarChange: false
  ),
.
.
.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then compare old and new value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparing Current and Updated Values</title><link>https://community.appian.com/thread/89611?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 06:50:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b3a34320-2389-40a9-99fd-2a62dee9156e</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Hi John,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For this, you simply use the equals(=) operator to compare the variables that you are using to store the value of merchant name and corporate name in the button confirmation header and message.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Talking more about it, the buttonWidget has two properties, which are - confirmationHeader and confirmationMessage. You can simply use an if condition in those properties to compare the values of the variables, if they are not equal, then add a string header and message, else, leave it blank.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>