<?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>validate if entered string is in array of string</title><link>https://community.appian.com/discussions/f/new-to-appian/28711/validate-if-entered-string-is-in-array-of-string</link><description>Hello i am trying to make validation for editable grid in appian so i am not able to enter same value into multiple rows but even when value is entered only in one row validation is triggered. Here is the code for validation: 
 validations: if( fv!item</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: validate if entered string is in array of string</title><link>https://community.appian.com/thread/112924?ContentTypeID=1</link><pubDate>Thu, 18 May 2023 05:53:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b9e57041-3da3-48ac-a577-21d8390a219a</guid><dc:creator>Sunil Choudhary</dc:creator><description>&lt;p&gt;Hi Juraj,&lt;/p&gt;
&lt;p&gt;I think you should try this once, maybe it&amp;#39;s work&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if(
                  count(
                    wherecontains(
                      tostring(index(fv!item, &amp;quot;value&amp;quot;, {})),
                      touniformstring(
                        local!ArrayOfStrings
                      )
                    )
                  ) &amp;gt; 1,
                  &amp;quot;Id already exist&amp;quot;,
                  null
                )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validate if entered string is in array of string</title><link>https://community.appian.com/thread/112922?ContentTypeID=1</link><pubDate>Thu, 18 May 2023 04:26:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bbf71654-810d-41e2-9057-9971aba28cd7</guid><dc:creator>arthurr3471</dc:creator><description>&lt;p&gt;Perhaps you can make a little adjustment.&lt;/p&gt;
&lt;p&gt;#&lt;a href="https://papas-freezeria.com/"&gt;papa&amp;#39;s freezeria&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validate if entered string is in array of string</title><link>https://community.appian.com/thread/112919?ContentTypeID=1</link><pubDate>Thu, 18 May 2023 04:08:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a60b29cb-78f5-40ad-8662-404f5b81a538</guid><dc:creator>harshavardhanv</dc:creator><description>&lt;p&gt;may be you can do a small change&amp;nbsp;&lt;/p&gt;
&lt;p&gt;in your instead of local!arrayOfStrings do it like remove(local!arrayOfStrings,fv!index) and then do a condition like if(contains(&lt;span&gt;remove(local!arrayOfStrings,fv!index),fv!item.value),&amp;quot;ID already exist&amp;quot;,&amp;quot;&amp;quot;)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validate if entered string is in array of string</title><link>https://community.appian.com/thread/112916?ContentTypeID=1</link><pubDate>Wed, 17 May 2023 23:32:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a91e6477-f521-4fa9-b6a6-b364f2d8ccd6</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Unless I misunderstood, I believe this is covered here:&amp;nbsp;&lt;a href="https://community.appian.com/discussions/f/rules/12086/duplicate-string-in-the-string-array"&gt;community.appian.com/.../duplicate-string-in-the-string-array&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>