<?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>Validation on editable grid</title><link>https://community.appian.com/discussions/f/user-interface/30348/validation-on-editable-grid</link><description>i want to highlight these two duplicate values when a user enter a duplicate value. 
 Please suggest me validation code.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Validation on editable grid</title><link>https://community.appian.com/thread/120630?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2023 13:24:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:db3ffe7d-f982-4516-be6f-851f7351af95</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data: {
    a!map(key:1, value:&amp;quot;A&amp;quot;),
    a!map(key:2, value:&amp;quot;B&amp;quot;),
    a!map(key:3, value:&amp;quot;A&amp;quot;),
  },
  a!gridLayout(
    headerCells: {
      a!gridLayoutHeaderCell(label: &amp;quot;Header Cell&amp;quot;)
    },
    rows: a!forEach(
      items: local!data,
      expression: a!gridRowLayout(
        id: fv!index,
        contents: {
          a!textField(
            value: fv!item.value,
            saveInto: fv!item.value,
            validations: if(
              contains(
                remove(local!data.value, fv!index),
                fv!item.value
              ),
              &amp;quot;Duplicate&amp;quot;,
              null
            )
          )
        }
      )
    ),
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>