<?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</title><link>https://community.appian.com/discussions/f/user-interface/38450/validation</link><description>Hi Team, 
 
 
 Validation should be triggered if the user enters two consecutive dots in the text field. How can we handle this?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Validation</title><link>https://community.appian.com/thread/145079?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 05:58:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:75fe3a82-4943-44a9-afe5-b1ae3e3a03d0</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;Yeah mike this worked , Thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validation</title><link>https://community.appian.com/thread/145063?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 17:11:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:88a19264-6473-4a84-bfb0-c22bbbcba8dc</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="298100" url="~/discussions/f/user-interface/38450/validation/145032"]The validation should throw an error when the user enters something like &amp;quot;3.6.5&amp;quot; as an example[/quote]
&lt;p&gt;that is different than what you originally said (&amp;quot;two consecutive...&amp;quot;)&lt;/p&gt;
&lt;p&gt;it is important to be completely clear with your requirements before you post a question if you want something that will handle the various cases you require.&amp;nbsp; Otherwise you&amp;#39;ll get a solution suggestion that handles &amp;quot;..&amp;quot; but doesn&amp;#39;t handle &amp;quot;3.6.5&amp;quot; as you&amp;#39;ve seen.&lt;/p&gt;
&lt;p&gt;So is your requirement &amp;quot;can only have up to one decimal&amp;quot;?&amp;nbsp; or is it &amp;quot;has to have exactly one decimal, no more and no less&amp;quot;?&amp;nbsp; These are implemented differently, obviously.&lt;/p&gt;
&lt;p&gt;Something I&amp;#39;ve used in the past when I need to verify exactly one period, for example, would be like &amp;lt;&amp;lt;length(split(ri!string, &amp;quot;.&amp;quot;)) = 2&amp;gt;&amp;gt; meaning, if i split the string into an array of strings on the &amp;quot;.&amp;quot; character, there should be exactly 2 members of the array (a part of the string before it and a part of the string after it).&amp;nbsp; Note you&amp;#39;d need to do some extra work to ensure the other parts are numeric, if that&amp;#39;s what you&amp;#39;re after.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validation</title><link>https://community.appian.com/thread/145062?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 17:05:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:148cee15-684f-47f6-9dbd-1910d5f396e2</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;I assume any 2 dots should trigger an error, not necessarily &amp;#39;consecutive&amp;#39; as mentioned in the first post?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!localVariables(
  local!data: {&amp;quot;12345&amp;quot;,&amp;quot;123.45&amp;quot;,&amp;quot;123..45&amp;quot;,&amp;quot;1.2.345&amp;quot;,null,&amp;quot;&amp;quot;},
  
  a!forEach(
    items: local!data,
    expression: todecimal(fv!item)=fv!item
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validation</title><link>https://community.appian.com/thread/145042?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 12:00:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7292c72f-07db-498c-8ca2-8270461042ce</guid><dc:creator>EREN_YEAGER</dc:creator><description>&lt;p&gt;what does &amp;#39;something like this&amp;#39; means, is it refferring to only dots or dot between numbers ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validation</title><link>https://community.appian.com/thread/145034?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 10:18:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:841750de-4458-4053-9e4d-bd4e0afade5c</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;In addition to the existing set of validations for decimal values, Throw a validation for&amp;nbsp; values like &amp;quot;3.6.5&amp;quot;.on top of this code&lt;pre class="ui-code" data-mode="text"&gt;if(
  ri!txt = 0,
  &amp;quot;&amp;quot;,
  if(
    or(
      not(
        rule!APN_isBlank(stripwith(ri!txt, &amp;quot;1234567890,.&amp;quot;))
      ),
      find(&amp;quot;..&amp;quot;, ri!txt)
    ),
    cons!CR_APP_FX_VALIDATION_MESSAGE[4],
    if(
      (len(ri!txt) - find(&amp;quot;.&amp;quot;, ri!txt)) &amp;gt; 9,
      cons!CR_APP_FX_VALIDATION_MESSAGE[3],
      if(
        ri!txt &amp;lt; 3.5,
        cons!CR_APP_FX_VALIDATION_MESSAGE[1],
        if(
          ri!txt &amp;gt; 4,
          cons!CR_APP_FX_VALIDATION_MESSAGE[2],
          &amp;quot;&amp;quot;
        )
      )
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validation</title><link>https://community.appian.com/thread/145032?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 10:02:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e6bce46f-7dcc-4e8f-b66f-7d3689ebd051</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;The validation should throw an error when the user enters something like &amp;quot;3.6.5&amp;quot; as an example. how can we achive this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validation</title><link>https://community.appian.com/thread/145020?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2025 12:47:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8899307f-ee2d-444d-bc3b-e0ea5737d1d3</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;Thanks it works&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validation</title><link>https://community.appian.com/thread/145018?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2025 11:45:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ebe56d7d-fac8-4a77-96f2-e7e44df723c0</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if(
  find(&amp;quot;..&amp;quot;, &amp;quot;123..456&amp;quot;),
  &amp;quot;ERROR&amp;quot;,
  &amp;quot;OK&amp;quot;
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>