<?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 a field which accept 0,1,2,3,4,5,6</title><link>https://community.appian.com/discussions/f/user-interface/28319/validate-a-field-which-accept-0-1-2-3-4-5-6</link><description>HI Team, 
 
 I stuck on feild validation which will accept only below combination: 
 it can be 
 0,1,2,3,4,5,6 
 or 0,1 or 1,2 combinations with all numbers or it can be only value which is less than 6 
 
 I am able to achieve with below code 
 a!isNullOrEmpty</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Validate a field which accept 0,1,2,3,4,5,6</title><link>https://community.appian.com/thread/110864?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 13:22:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e58665d6-ce84-4df7-8d78-00146f10c096</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I use a freeware tool called Greenshot - i have it mapped to my &amp;quot;printscreen&amp;quot; key (key bindings are fully editable), where the keypress immediately brings up a region-selection tool&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1681219221133v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;and after selecting the region i want, it immediately opens a compact editor, with quick access to features like drawing, highlighting, obfuscating (blur or pixellate), adding a clean border or &amp;quot;torn edge&amp;quot; border...&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1681219311776v2.png" alt=" " /&gt;&lt;br /&gt;(you probably don&amp;#39;t need to guess which one i like doing more often, lol...)&lt;/p&gt;
&lt;p&gt;And when done editing, you just press &amp;quot;copy&amp;quot; if you don&amp;#39;t want to mess with saving the file somewhere (though that&amp;#39;s also made easy), and can paste directly here.&lt;/p&gt;
&lt;p&gt;The one thing it doesn&amp;#39;t do that I sometimes miss is small video snippets.&amp;nbsp; But I like the rest of it well enough that I really can&amp;#39;t complain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate a field which accept 0,1,2,3,4,5,6</title><link>https://community.appian.com/thread/110818?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 05:57:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3d14f20a-f24b-4e2f-af1e-e5e66b251407</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;a href="/members/mikes0011"&gt;Mike Schmitt&lt;/a&gt; I have always wondered how do you capture screenshots like this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate a field which accept 0,1,2,3,4,5,6</title><link>https://community.appian.com/thread/110798?ContentTypeID=1</link><pubDate>Mon, 10 Apr 2023 13:41:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:de3b1ff6-c9bc-4326-b7f7-8ad5483bc88b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Cool, thanks for confirming - if you get a chance, it&amp;#39;d be nice for you to hit the &amp;quot;verify&amp;quot; button &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f604.svg" title="Smile"&gt;&amp;#x1f604;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate a field which accept 0,1,2,3,4,5,6</title><link>https://community.appian.com/thread/110772?ContentTypeID=1</link><pubDate>Mon, 10 Apr 2023 04:54:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a716c6cd-8c5f-4373-978d-31a9ee6e2863</guid><dc:creator>udayasai</dc:creator><description>&lt;p&gt;Yes Mike , You answered my question , Thank you, Only thing is if user enter duplicates like 1,2,3,3 we need to validate, But i handled this senario , Thanks for the help and you always rock&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate a field which accept 0,1,2,3,4,5,6</title><link>https://community.appian.com/thread/110736?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2023 15:25:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c05fd303-adbf-4500-a340-86bea2f305bc</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Are you saying the user enters a &lt;em&gt;text value&lt;/em&gt; of like &amp;quot;0,1&amp;quot; or &amp;quot;0,1,2&amp;quot;, ... &amp;quot;0,1,2,3,4,5,6&amp;quot;, and those permutations?&amp;nbsp; It&amp;#39;s a little unclear what the delineation is here between valid/expected inputs and invalid ones.&lt;/p&gt;
&lt;p&gt;Also: is it order independent?&amp;nbsp; Accepts multiple values? Etc?&amp;nbsp; You didn&amp;#39;t specify, but if these are constraints we aren&amp;#39;t worried about, then the following might work:&lt;br /&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!localVariables(
  local!input,
  
  local!validSet: {1, 2, 3, 4, 5, 6, 0},
  
  a!textField(
    value: local!input,
    saveinto: local!input,
    
    validations: {
      if(
        and(
          a!isNotNullOrEmpty(local!input),
          or(
            a!forEach(
              split(local!input, &amp;quot;,&amp;quot;),
              or(
                fv!item &amp;lt;&amp;gt; tostring(tointeger(fv!item)),
                not(contains(local!validSet, tointeger(fv!item)))
              )
            )
          )
        ),
        &amp;quot;Invalid Entry&amp;quot;,
        {}
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Valid:&lt;br /&gt;&lt;img height="109" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1680881545190v1.png" width="273" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Invalid:&lt;br /&gt;&lt;img height="122" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1680881566247v2.png" width="283" alt=" " /&gt;&lt;img height="169" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1680881596227v3.png" width="285" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>