<?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>TextField Validation</title><link>https://community.appian.com/discussions/f/general/39750/textfield-validation</link><description>Hi, 
 Can you please help me how to give validation to the Textfield, where it should accept only Alphabets. 
 If any special characters or numbers entered it should throw an validation error message. 
 
 Is there any function is there?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: TextField Validation</title><link>https://community.appian.com/thread/151725?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 15:29:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:53606305-49a8-4b9d-9be1-b038129310df</guid><dc:creator>juniorgilbertod836127</dc:creator><description>&lt;p&gt;se puede realizar la validaci&amp;oacute;n por medio de expresiones regulares con la funci&amp;oacute;n:&lt;/p&gt;
&lt;p&gt;a!matchRegex(a!matchRegex(&lt;br /&gt; pattern: &amp;quot;^[0-9]{10}$&amp;quot;, /* Solo n&amp;uacute;meros de 10 d&amp;iacute;gitos */&lt;br /&gt; value: &amp;quot;3214567890&amp;quot;value: &amp;quot;3214567890&amp;quot;&lt;br /&gt;))&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TextField Validation</title><link>https://community.appian.com/thread/151665?ContentTypeID=1</link><pubDate>Fri, 19 Sep 2025 18:53:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c0be99e6-3196-4d70-afa6-7faf55d752a4</guid><dc:creator>osanchea</dc:creator><description>&lt;p&gt;Hi. You could try this:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!test,
  {
    a!columnsLayout(
      columns: {
        a!columnLayout(
          contents: {
            a!textField(
              label: &amp;quot;Text&amp;quot;,
              labelPosition: &amp;quot;ABOVE&amp;quot;,
              value: local!test,
              saveInto: {
                local!test
              },
              refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
              validations: {
                if(
                  regexmatch(
                    pattern: &amp;quot;^[a-zA-Z]+$&amp;quot;,
                    searchString: local!test
                  ),
                  null,
                  &amp;quot;Only alphabetic letters (A–Z) are allowed.&amp;quot;
                )
              }
            )
          }
        ),
        a!columnLayout(
          contents: {}
        ),
        a!columnLayout(
          contents: {}
        )
      }
    )
  }
)&lt;/pre&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1758308002648v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TextField Validation</title><link>https://community.appian.com/thread/151659?ContentTypeID=1</link><pubDate>Fri, 19 Sep 2025 15:34:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aa5ddcf2-d5d8-482a-9e80-8f9668c5d11b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;e.g.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1758296080882v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TextField Validation</title><link>https://community.appian.com/thread/151658?ContentTypeID=1</link><pubDate>Fri, 19 Sep 2025 15:20:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0dd5cc16-068f-4be2-92b4-a008d31d3e0f</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;you probably want to utilize the &amp;quot;clean()&amp;quot; function, which strips any nonprintable characters from input text.&amp;nbsp; If you wish to STRICTLY only support letters (not numbers, not anything else), then you can pivot to &amp;quot;cleanWith()&amp;quot;, which allows you to set the list of acceptable characters.&lt;/p&gt;
&lt;p&gt;Using this you can then choose between 2 methods:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;easiest, sanitize the user&amp;#39;s input as they input it.&amp;nbsp; don&amp;#39;t bother with validaiton at all.&lt;/li&gt;
&lt;li&gt;instead, you could use the funciton in your validation, and check whether the input string is different from the string when invalid characters are removed, and if so, show a validation message.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>