<?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>Is there a method to restrict the use of special characters other than &amp;quot;space, (), [], and &amp;lt;&amp;gt;&amp;quot;</title><link>https://community.appian.com/discussions/f/new-to-appian/25690/is-there-a-method-to-restrict-the-use-of-special-characters-other-than-space-and</link><description>Hello, 
 
 Is there a method to restrict the use of special characters other than &amp;quot;space, (), [], and &amp;lt;&amp;gt;&amp;quot; in the text field or paragraph field? 
 Kind of thinking using validation. 
 
 Thank you.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Is there a method to restrict the use of special characters other than "space, (), [], and &lt;&gt;"</title><link>https://community.appian.com/thread/100479?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 06:03:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84b6cbad-893f-41fc-8edf-791a5d1c780e</guid><dc:creator>dreamyoung</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;I kind of made it like&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!isNullOrEmpty(
  concat(
    a!forEach(
      items: {
        &amp;quot;`&amp;quot;,&amp;quot;~&amp;quot;,&amp;quot;!&amp;quot;,&amp;quot;@&amp;quot;,&amp;quot;#&amp;quot;,&amp;quot;$&amp;quot;,&amp;quot;%&amp;quot;,&amp;quot;^&amp;quot;,&amp;quot;&amp;amp;&amp;quot;,&amp;quot;*&amp;quot;,&amp;quot;_&amp;quot;,&amp;quot;-&amp;quot;,&amp;quot;=&amp;quot;,&amp;quot;/&amp;quot;,&amp;quot;?&amp;quot;,&amp;quot;{&amp;quot;,&amp;quot;}&amp;quot;,&amp;quot;;&amp;quot;,&amp;quot;:&amp;quot;
      },
      expression: {
        if(
          search(fv!item, ri!textField, 1) = 0,
          {},
          1
        )
      }
    ),
  )
)&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;but, think yours is better.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a method to restrict the use of special characters other than "space, (), [], and &lt;&gt;"</title><link>https://community.appian.com/thread/100478?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 05:50:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:25b7fd1b-b182-4c19-a7cb-cf45fbfecf19</guid><dc:creator>ujjwalb0003</dc:creator><description>&lt;p&gt;You can try this :&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt; local!allspecialCharacters: &amp;quot;`!@#$%^&amp;amp;*-_={}|\/:;&amp;#39;&amp;quot;&amp;quot;,.?&amp;quot;,&lt;br /&gt; local!textField: &amp;quot;&amp;quot;,&lt;br /&gt; a!textField(&lt;br /&gt; label: &amp;quot;Text&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; value: local!textField,&lt;br /&gt; saveInto: { local!textField },&lt;br /&gt; refreshAfter: &amp;quot;UNFOCUS&amp;quot;,&lt;br /&gt; validations: {&lt;br /&gt; if(&lt;br /&gt; len(local!textField) = 0,&lt;br /&gt; null,&lt;br /&gt; if(&lt;br /&gt; len(local!textField) &amp;gt; len(&lt;br /&gt; stripwith(&lt;br /&gt; local!textField,&lt;br /&gt; local!allspecialCharacters&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; &amp;quot;Special Characters not allowed&amp;quot;,&lt;br /&gt; null&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a method to restrict the use of special characters other than "space, (), [], and &lt;&gt;"</title><link>https://community.appian.com/thread/100477?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 05:46:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1ac7c00c-4d6c-4668-bfca-e77283cc5fc9</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;There are many ways of doing it One of the methods that I use the most is to see Stripwith() function to remove all the special characters and then compare the length of the two strings. Also, isolate this in a rule so you can add or remove characters in the future with ease.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a method to restrict the use of special characters other than "space, (), [], and &lt;&gt;"</title><link>https://community.appian.com/thread/100472?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 04:09:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3485333d-cf01-419c-92e5-0393b782c98c</guid><dc:creator>deepakg271869</dc:creator><description>&lt;p&gt;You have to use regex to restrict it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>