<?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>Need to highlight the field when changed the value</title><link>https://community.appian.com/discussions/f/new-to-appian/19486/need-to-highlight-the-field-when-changed-the-value</link><description>Hello All, 
 I have the below requirement and need your inputs. 
 Screen is having dropdown values, Text box and Date fields. These all details are from one table. When I have changed the values in dropdown or textbox or date fields it should be highlighted</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Need to highlight the field when changed the value</title><link>https://community.appian.com/thread/76223?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2020 13:01:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d14f2886-c501-4bfa-bd56-79391e979248</guid><dc:creator>Poranki Ramaraju</dc:creator><description>&lt;p&gt;Thank you so much Mike...&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to highlight the field when changed the value</title><link>https://community.appian.com/thread/76216?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 17:46:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f1bf22a-3015-431e-88dc-25a233902ff5</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Sorry for the delay, i had to go get lunch - in any case, you would want to declare your variables (using the a!localVariables() parent) using the a!refreshVariable declaration and turn OFF &amp;quot;refresh on referenced variable change&amp;quot; for any local variables you&amp;#39;d like to remain static even when the original copy of the data is updated.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  
  local!originalCopy: a!refreshVariable(
    value: ri!myDataCDT,
    refreshOnReferencedVarChange: false()
  ),
  
  local!isDataUpdated: not(exact(
    tostring(ri!myDataCDT),
    tostring(local!originalCopy)
  )),
  
  a!formLayout(
    contents: { /* ... */ }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to highlight the field when changed the value</title><link>https://community.appian.com/thread/76215?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 17:12:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8eddb852-42b4-48d9-8507-8979ee808344</guid><dc:creator>Poranki Ramaraju</dc:creator><description>&lt;p&gt;Im working on 20.1 and could you please suggest me code to declare the local variables... That would be really helpful.... Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to highlight the field when changed the value</title><link>https://community.appian.com/thread/76214?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 16:38:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:efe2325a-6182-4db1-9ee5-1f1ec4822fa7</guid><dc:creator>Poranki Ramaraju</dc:creator><description>&lt;p&gt;Im working on 20.1 version&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to highlight the field when changed the value</title><link>https://community.appian.com/thread/76213?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 16:38:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1105536e-d105-401e-8a84-62f3dd4725f5</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you confirm whether you&amp;#39;re working in an Appian version at or above 19.2?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to highlight the field when changed the value</title><link>https://community.appian.com/thread/76212?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 16:37:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed09203e-9867-4018-ba83-6d20cfef5982</guid><dc:creator>Poranki Ramaraju</dc:creator><description>&lt;p&gt;Thank you Raghu.... Could you please suggest me code to declare the local variables. That would be really helpful. Thanks alot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to highlight the field when changed the value</title><link>https://community.appian.com/thread/76211?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 16:37:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0a62ef8a-7247-43a9-bf59-2fed47526baf</guid><dc:creator>Poranki Ramaraju</dc:creator><description>&lt;p&gt;Thank you Mike.. Could you please suggest me code to declare the local variables. It would be really helpful... Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to highlight the field when changed the value</title><link>https://community.appian.com/thread/76208?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 16:02:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:017d199b-437b-41e6-ab59-b1660b3b61fa</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I don&amp;#39;t know of any way to &amp;quot;highlight&amp;quot; a field like this, but you could use a combination of side-by-side layouts and rich text fields with icons (as you seem to already suggest); you would want to store a copy of the original data in a local variable which does not change, and compare that to the value of the variable that DOES get updated, and you could set the visibility properties of the icon (appearance, color, size, captions, etc) depending on whether the data has changed or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to highlight the field when changed the value</title><link>https://community.appian.com/thread/76192?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 09:38:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:04da4543-7418-44a4-8a4d-44877ff7d1d0</guid><dc:creator>Raghuvaran Nagarajan</dc:creator><description>&lt;p&gt;since the oy way to highlight these input fields is to use the validations. please try the below approach if it&amp;#39;s okay to use the validation highlight.&lt;/p&gt;
&lt;p&gt;1. Save the initial value shown in the input components in a local variable(s) (say, local!original value) and make sure that all refresh is false.&lt;/p&gt;
&lt;p&gt;2. Use a different local variable (say, local!current value) in the saveInto of these input fields&lt;/p&gt;
&lt;p&gt;3. Compare the two local variables to through a validation if those are different. &lt;/p&gt;
&lt;p&gt;4. Makesure that you use the validation groups to skip these validations during form submission&lt;/p&gt;
&lt;p&gt;Note: The only drawback of this approach is that you may not be able to add any other proper validations to this field.&lt;/p&gt;
&lt;p&gt;-Raghu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>