<?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 number without using regex</title><link>https://community.appian.com/discussions/f/general/20919/validate-number-without-using-regex</link><description>Hi All, 
 Is there any way to validate number without using regex. 
 Here is the requirement, 
 Need to enter only number upto 15-18 character. I can&amp;#39;t use here integer or floating-point field so I am using textbox with regexmatch function to validate</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: validate number without using regex</title><link>https://community.appian.com/thread/81541?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 16:06:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c5de54c9-ecd8-4b4c-b8cc-af381db2211e</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;There are a few ways to achieve this.&amp;nbsp; Here&amp;#39;s a working example utilizing cleanwith() to automatically remove alpha characters, and validates length of up to 18.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!localVariables(
  local!data,
  {
    a!textField(
      label: &amp;quot;Enter Data&amp;quot;,
      value: local!data,
      saveInto: a!save(local!data,cleanwith(save!value,&amp;quot;1234567890&amp;quot;)),
      validations: {
        if(
          len(local!data)&amp;gt;18,
          &amp;quot;Please enter a number up to 18 characters&amp;quot;,
          null
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validate number without using regex</title><link>https://community.appian.com/thread/81475?ContentTypeID=1</link><pubDate>Sun, 09 May 2021 12:25:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5679a414-189f-4516-aa61-7f3bd06c15fb</guid><dc:creator>natashan0002</dc:creator><description>&lt;p&gt;This will return true if all entered inputs are numbers.&lt;/p&gt;
&lt;p&gt;isnull(&lt;br /&gt; stripwith(lower(ri!textinput), &amp;quot;1234567890&amp;quot;)&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;furthermore you can use len() , and() to check the length.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validate number without using regex</title><link>https://community.appian.com/thread/81474?ContentTypeID=1</link><pubDate>Sun, 09 May 2021 12:22:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0aa9ce9f-282d-4fcc-a76f-dc3a85a80cb5</guid><dc:creator>natashan0002</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can use stripwith.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>