<?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 SSN</title><link>https://community.appian.com/discussions/f/user-interface/24791/validate-ssn</link><description>How to validate ssn in appian? format should be ###-##-####</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Validate SSN</title><link>https://community.appian.com/thread/95952?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 18:05:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c2306217-fafe-429a-8b55-49c74a73c694</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="110874" url="~/discussions/f/user-interface/24791/validate-ssn/95920#95920"]after entering numbers. can we do that??[/quote]
&lt;p&gt;Can you do what?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate SSN</title><link>https://community.appian.com/thread/95920?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 07:13:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b7d4036d-677f-4a81-92b4-9e4db89ab4a2</guid><dc:creator>Chaitra R</dc:creator><description>[quote userid="50400" url="~/discussions/f/user-interface/24791/validate-ssn/95876#95876"]which you might want to eventually include -[/quote]
&lt;p&gt;how this will be achieve in appian&lt;/p&gt;
&lt;p&gt;for example: 345&amp;nbsp;&lt;span style="background-color:#ffff00;"&gt;-&amp;nbsp;&lt;/span&gt;34 &lt;span style="background-color:#ffff00;"&gt;-&lt;/span&gt;5467&lt;/p&gt;
&lt;p&gt;After entering 345 &amp;quot;-&amp;quot;&amp;nbsp; should populate automatically before entering next number&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate SSN</title><link>https://community.appian.com/thread/95919?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 07:03:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:facb2804-2279-4ea9-8430-640e72f33014</guid><dc:creator>Chaitra R</dc:creator><description>&lt;p&gt;Okay!! Thank you Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate SSN</title><link>https://community.appian.com/thread/95880?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 15:06:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9f0beab1-6c7e-4d53-b03d-0ce0a39deeaa</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Appian uses relatively standard Java Regex syntax - there are plenty of tutorials and primers available externally.&amp;nbsp; Here&amp;#39;s one I keep bookmarked for a quick reference every time I need to brush up and try to accomplish something new within Appian: &lt;a href="https://www.vogella.com/tutorials/JavaRegularExpressions/article.html"&gt;www.vogella.com/.../article.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate SSN</title><link>https://community.appian.com/thread/95879?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 15:02:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:75d25fb7-8a65-4b55-b665-c3ffe78094c8</guid><dc:creator>Shikha</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;On the Similar note , can you please explain the symbols being used in regex functions? I am referring to the below link but this doesn&amp;#39;t explain greatly on the use of The cap symbol (^) and the dollar one and the brackets . It&amp;#39;ll be really helpful if you can explain a bit on those by any example.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/b/appmarket/posts/regular-expression-functions"&gt;https://community.appian.com/b/appmarket/posts/regular-expression-functions&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate SSN</title><link>https://community.appian.com/thread/95876?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 14:39:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0a806835-967c-4291-8e9d-822f7b94559a</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Second, &amp;quot;regexMatch&amp;quot; expects at least 2 parameters, pattern then search string.&amp;nbsp; You&amp;#39;re only passing in the pattern, and then your search string is not even included in the function call.&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1654180578265v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;The correction to this is fairly simple:&lt;br /&gt;&lt;pre class="ui-code" data-mode="java"&gt;regexmatch(
  &amp;quot;^\d{3}-\d{2}-\d{4}$&amp;quot;,
  ri!ssn
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;...which seems to work fine per what you&amp;#39;re after.&amp;nbsp;&amp;nbsp; Please note also that &amp;quot;regexMatch()&amp;quot; returns values of TRUE or FALSE, so you&amp;#39;ll want to only show your validation message when the match operation returns a FALSE.&lt;/p&gt;
&lt;p&gt;(When you have this part down, I&amp;#39;d note that there are some heuristic validations for SSN&amp;#39;s which you might want to eventually include - such as, no section of the SSN is allowed to be all zeros, the first digit can&amp;#39;t be &amp;quot;9&amp;quot;, etc.)&lt;/p&gt;
&lt;p&gt;2/2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate SSN</title><link>https://community.appian.com/thread/95875?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 14:34:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bcf0373e-5a18-46d5-b0af-ad84f8c518f6</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Your expression is not formatted correctly.&lt;/p&gt;
&lt;p&gt;First, &amp;quot;validations&amp;quot; expects one or more strings.&amp;nbsp; These strings will be shown as [failed] validation message(s) anytime they&amp;#39;re present - meaning you would need to show the strings conditionally, something like this:&lt;br /&gt;&lt;pre class="ui-code" data-mode="java"&gt;validations: {
  if(
    [validation failure condition #1],
    &amp;quot;Validation Message 1&amp;quot;,
    {}
  ),
  if(
    [validation failure condition #2],
    &amp;quot;Validation Message 2&amp;quot;,
    {}
  ),
  [etc]
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;1/&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate SSN</title><link>https://community.appian.com/thread/95874?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 13:45:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d401391c-9bab-4833-9d97-625d7bef5b90</guid><dc:creator>Chaitra R</dc:creator><description>&lt;p&gt;i am creating a form. user needs to fill the ssn field. if he enters other than this&amp;nbsp;###-##-####, it should throw validation message.&lt;/p&gt;
&lt;p&gt;i am not sure, but am using like this:&lt;/p&gt;
&lt;p&gt;validations: {regexmatch(&amp;quot;^\d{3}-\d{2}-\d{4}$&amp;quot;),ri!SR_Test.ssn}&lt;/p&gt;
&lt;p&gt;its showing an error &amp;quot;&lt;span&gt;Unexpected number of parameters&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate SSN</title><link>https://community.appian.com/thread/95873?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 13:38:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a7b5e7f-5665-43b3-b3cb-7ea4d7baecf9</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You can use regex pattern matching in any place you&amp;#39;d use other expression logic.&amp;nbsp; In this case, Stefan is referring to using it in the text field&amp;#39;s &amp;quot;validations&amp;quot; parameter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate SSN</title><link>https://community.appian.com/thread/95871?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 13:34:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2e22562f-6644-4e2e-bb29-cceace707c34</guid><dc:creator>Chaitra R</dc:creator><description>&lt;p&gt;can we use regex in a!textfield()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate SSN</title><link>https://community.appian.com/thread/95867?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 12:56:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5a78f9c6-8036-4689-baf3-371a042c154c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I think this would be a good case for the regular expression plugin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate SSN</title><link>https://community.appian.com/thread/95860?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 12:31:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:305d9c84-9ed2-41c1-909b-52f02b93fef6</guid><dc:creator>laurensw</dc:creator><description>&lt;p&gt;Without going ahead and creating the expression for you - I suggest creating an expression rule that checks the text value on length, structure (certain character types at certain indexes) using text functions, and returns a boolean output always.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>