<?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>21 digits number</title><link>https://community.appian.com/discussions/f/user-interface/31215/21-digits-number</link><description>Hello All 
 
 I want to add a field that accept only 21 digits of number I tried to use a!integerField but is not allowed to enter too long numbers</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: 21 digits number</title><link>https://community.appian.com/thread/124818?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 08:52:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:24d4d04e-1320-4736-b913-e00d46d799c7</guid><dc:creator>alaaa6815</dc:creator><description>&lt;p&gt;Thank you &lt;a href="/members/harshitb6843"&gt;Harshit Bumb (Appyzie)&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 21 digits number</title><link>https://community.appian.com/thread/124817?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 08:52:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f6d92dc-f822-4204-8e4f-728c41306224</guid><dc:creator>alaaa6815</dc:creator><description>&lt;p&gt;Thank you &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 21 digits number</title><link>https://community.appian.com/thread/124815?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 08:32:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:05d86ceb-4bf8-496f-9c67-37b12dc45e6d</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;The largest value integer can store on Appian is&amp;nbsp;&lt;span style="background-color:#99ccff;"&gt;2147483646&lt;/span&gt;&amp;nbsp;and after that, it takes it back to negative.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Because you want to store 21 digits, you can use textField with length validation and another validation that makes sure the user is only entering numbers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!textField(
  characterLimit: 21,
  value: ri!value,
  saveInto: ri!value,
  validations: if(
    a!isNullOrEmpty(stripwith(ri!value,&amp;quot;1234567890&amp;quot;)),
    {},
    &amp;quot;Value can only contain numbers&amp;quot;
  )
)&lt;/pre&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1705998737188v1.png" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NOTE - You will also need to change the Datatype of your CDT field, Record field, and DB column to text.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 21 digits number</title><link>https://community.appian.com/thread/124814?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 08:30:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e95d4539-34a6-405d-9de5-5f51f89545ca</guid><dc:creator>kraty Maheshwari</dc:creator><description>&lt;p&gt;Try the below code and lemme know if it works for you&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!input,
  a!textField(
    label: &amp;quot;Text&amp;quot;,
    labelPosition: &amp;quot;ABOVE&amp;quot;,
    value: local!input,
    saveInto: local!input,
    refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
    validations: if(
      a!isNullOrEmpty(local!input),
      {},
      if(
        or(
          len(local!input) &amp;gt; 21,
          regexmatch(&amp;quot;[^0-9.]&amp;quot;, local!Input)
        ),
        &amp;quot;Invalid Input&amp;quot;,
        &amp;quot;&amp;quot;
      )
    )
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1705998561235v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 21 digits number</title><link>https://community.appian.com/thread/124813?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 08:22:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f5c864c-6ae0-40ce-aae9-5cb930919803</guid><dc:creator>kraty Maheshwari</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/alaaa6815"&gt;alaaa6815&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can use textField and validate the field if the user&amp;#39;s input is not valid as integer field does not accept more than 10 digits.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>