<?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>validations</title><link>https://community.appian.com/discussions/f/rules/30755/validations</link><description>Hi, I need a validation that the user can enter only numbers from 01-99 . How can we do this? Is there any range function or limit function to check it?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: validations</title><link>https://community.appian.com/thread/123103?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 15:02:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23087850-4a71-467f-8729-f98209a5564e</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;I was using regex and then my requirement changed to a dropdown field.&amp;nbsp;&lt;br /&gt;So used enumerate function to display numbers from 01-99&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validations</title><link>https://community.appian.com/thread/123092?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 13:49:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:495cff76-673f-4c03-a403-7942d41cf61b</guid><dc:creator>KristinWall</dc:creator><description>&lt;p&gt;Have you tried it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validations</title><link>https://community.appian.com/thread/122463?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 07:51:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a3615611-9056-41a2-bb44-d83ae41bf863</guid><dc:creator>Amaan Shekh</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;regexmatch(
  pattern: &amp;quot;^0*[0-9]{0,2}$&amp;quot; ,
  searchString: ri!x
)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;above pat&lt;span&gt;tern will allow only value between 01-99, and x can be type of string.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validations</title><link>https://community.appian.com/thread/122399?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 17:44:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:99b13f1f-e4cd-460d-9600-92cab7098f30</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;Thanks, I&amp;#39;ll try this&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validations</title><link>https://community.appian.com/thread/122391?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 16:46:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6c83450e-4bee-41d7-90a4-3254a95d3835</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Sorry but it all needs to be answered at once for the most part.&amp;nbsp; If you just want &amp;quot;a limit&amp;quot; then Stewart&amp;#39;s initial answer (among other potential simpler solutions) would be just fine.&amp;nbsp; Allowing users to enter a list of valid values completely changes the nature of the problem, because you need to deal with parsing a list, forcing users to enter a delimiter of some sort (or using an alternative type of field as Stewart suggests above), and other such questions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validations</title><link>https://community.appian.com/thread/122390?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 16:43:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9cc0147d-9b21-4397-9b4f-ac705abdd864</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Other options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;dropdown with all of the valid options in it (it&amp;#39;s not too clunky for the end user)&lt;/li&gt;
&lt;li&gt;a custom picker that only returns the values 01-99 - this would be a better user experience than the dropdown as you&amp;#39;d only get up to 10 suggestions when the first character is entered&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validations</title><link>https://community.appian.com/thread/122388?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 16:33:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:50c78cba-7276-414c-b7b8-0ec438cbe5d4</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;Hi Mike, sorry about the confusion.&lt;br /&gt;First my question is for the limit.&amp;nbsp;&lt;br /&gt;Then later I wanted to know in case if there is a list of values, can we used regex function&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validations</title><link>https://community.appian.com/thread/122387?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 16:31:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1288f7a3-4d60-4545-9665-ca205b4d91af</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="154541" url="~/discussions/f/rules/30755/validations/122385"]user can enter a value a list from 01-99[/quote]
&lt;p&gt;This is a bit different from what you wrote originally - can you clarify (which you should have done initially), EXACTLY what the user is expected to be typing in their text field, including not only the values but the manner by which they will be SEPARATING the individual values they enter, etc?&amp;nbsp; This is an intricate question, and so in order to provide a correct answer, we really &lt;em&gt;&lt;span style="text-decoration:underline;"&gt;need these details &lt;strong&gt;up-front&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt; without having to try one solution only for you to clarify that the &lt;em&gt;real&lt;/em&gt; question was something rather different....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validations</title><link>https://community.appian.com/thread/122386?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 16:28:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f771a943-c3a4-4bfb-aaa1-cccc78b9f437</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;As long as you can find the correct RegEx expression then yes. I would encapsulate the RegEx in a separate Expression Rule so you can test it independently from the User Interface, and then simply incorporate it into the Interface when it&amp;#39;s ready.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validations</title><link>https://community.appian.com/thread/122385?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 16:23:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:63d26ef1-5ab1-442b-b5cf-83585d0c4a78</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;I use a text field and user can enter a value a list from 01-99. Is it possible to use regexallmatches for this to validate and get the correct&amp;nbsp; values&amp;nbsp;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validations</title><link>https://community.appian.com/thread/122384?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 16:08:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:79c330ab-9621-48c9-b788-d23c6c99e1ab</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Assuming the field you&amp;#39;re using to capture the data is an Integer field you can write a validation on that field:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  a!integerField(
    label: &amp;quot;Integer&amp;quot;,
    labelPosition: &amp;quot;ABOVE&amp;quot;,
    value: ri!myInteger,
    saveInto: {
      ri!myInteger
    },
    refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
    validations: {
      if(
        fn!or(
          ri!myInteger&amp;lt;0,
          ri!myInteger&amp;gt;99
        ),
        &amp;quot;Invalid value - out of range (0-99)&amp;quot;,
        null
      )
    }
  )
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>