<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Disallow spaces and special characters in a field</title><link>https://www.infopathdev.com:443/forums/thread/84082.aspx</link><pubDate>Thu, 01 Nov 2012 15:00:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84082</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84082.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=84082</wfw:commentRss><description>Wow, perfect - thanks for contributing to the thread with this pattern!</description></item><item><title>Re: Disallow spaces and special characters in a field</title><link>https://www.infopathdev.com:443/forums/thread/84072.aspx</link><pubDate>Thu, 01 Nov 2012 11:42:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84072</guid><dc:creator>SharePointEric</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84072.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=84072</wfw:commentRss><description>I know that this is an old thread but thought it might be worth pointing out that you can use both Clayton&amp;#39;s and Hilary&amp;#39;s methods together. I wanted to allow my users to enter free, human-readable text in a field that gets used in the filename for browser-enabled forms in SharePoint. Spaces inflate the filename and special characters can interrupt the URL when you send links to the form by e-mail alerts so I needed a way to consume the user&amp;#39;s entry and store it in a field with no spaces or special characters outside of hyphens, underscores and decimals that gets concatenated to a time stamp to form a filename. The answer was simple; the hidden field has a default value of:

translate(../my:FieldName, &amp;quot;~!@#$%^&amp;amp;*()+=;&amp;#39;&amp;lt;&amp;gt;?,{}[]|\ &amp;quot;, &amp;quot;&amp;quot;)</description></item><item><title>Re: Disallow spaces and special characters in a field</title><link>https://www.infopathdev.com:443/forums/thread/80704.aspx</link><pubDate>Wed, 18 Jul 2012 01:59:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80704</guid><dc:creator>sudlev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80704.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=80704</wfw:commentRss><description>&lt;p&gt;Hi Hilary, &lt;/p&gt;
&lt;p&gt;I&amp;#39;d like to echo these sentiment. Very helpful to people like myself who have no idea how to use these custom patterns (and much more useful than the included patterns).&lt;/p&gt;
&lt;p&gt;So thanks a lot for posting this information.&lt;/p&gt;
&lt;p&gt;Danny&lt;/p&gt;</description></item><item><title>Re: Disallow spaces and special characters in a field</title><link>https://www.infopathdev.com:443/forums/thread/79249.aspx</link><pubDate>Tue, 05 Jun 2012 15:02:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79249</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79249.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=79249</wfw:commentRss><description>&lt;p&gt;The easiest approach there may just be to change the data type - set it to whole number (or decimal, if that&amp;#39;s what you need). I&amp;#39;m not sure you&amp;#39;d need a custom pattern for this? Unless your &amp;quot;numbers&amp;quot; can start with zero, or include spaces, etc?&lt;/p&gt;</description></item><item><title>Re: Disallow spaces and special characters in a field</title><link>https://www.infopathdev.com:443/forums/thread/79233.aspx</link><pubDate>Tue, 05 Jun 2012 11:40:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79233</guid><dc:creator>maro123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79233.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=79233</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Can you tell me how to make the text field to allow users to write only numbers?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Disallow spaces and special characters in a field</title><link>https://www.infopathdev.com:443/forums/thread/78032.aspx</link><pubDate>Thu, 26 Apr 2012 15:33:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78032</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78032.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=78032</wfw:commentRss><description>&lt;p&gt;Alex - you just made my day! Thanks!&lt;/p&gt;
&lt;p&gt;Jack - sorry I didn&amp;#39;t see your post earlier. I&amp;#39;m attaching an updated sample that allows white space (the escape for that is /s).&lt;/p&gt;</description></item><item><title>Re: Disallow spaces and special characters in a field</title><link>https://www.infopathdev.com:443/forums/thread/78026.aspx</link><pubDate>Thu, 26 Apr 2012 15:19:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78026</guid><dc:creator>Alex Morales</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78026.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=78026</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;&lt;p&gt;I like so much your answers and this is not the first time you help me with.&lt;/p&gt;&lt;p&gt;Thank you so much, I have to create an user just to said thank you.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Alex Morales&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Re: Disallow spaces and special characters in a field</title><link>https://www.infopathdev.com:443/forums/thread/75793.aspx</link><pubDate>Tue, 28 Feb 2012 15:07:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75793</guid><dc:creator>JackBB</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75793.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=75793</wfw:commentRss><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the pattern [A-Za-z0-9\-]* to allow only these characters, however I would like to allow the use of blank spaces also, I&amp;#39;ve been trying but can&amp;#39;t seem to find the right pattern to also allow spaces in this field.&lt;/p&gt;
&lt;p&gt;I would like to allow values like :&lt;/p&gt;
&lt;p&gt;blabla bla23&lt;/p&gt;
&lt;p&gt;blabla 123blabla&amp;nbsp; bla 12&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jack&lt;/p&gt;</description></item><item><title>Re: Disallow spaces and special characters in a field</title><link>https://www.infopathdev.com:443/forums/thread/60107.aspx</link><pubDate>Fri, 08 Oct 2010 19:04:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60107</guid><dc:creator>Gaston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60107.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=60107</wfw:commentRss><description>Hi ravimca,

I have the same problem, Did you solve that?

Thanks.</description></item><item><title>Re: Disallow spaces and special characters in a field</title><link>https://www.infopathdev.com:443/forums/thread/51977.aspx</link><pubDate>Sat, 20 Feb 2010 01:17:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51977</guid><dc:creator>ravimca</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51977.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=51977</wfw:commentRss><description>&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Can any one help me to validate special characters?&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;I want to&amp;nbsp;validate texbox which&amp;nbsp;allows numbers, letters and dashes and should not allow any special characters&amp;nbsp; :&amp;quot;#%&amp;amp;*:&amp;lt;&amp;gt;?\/{|}~&amp;nbsp; and white space, a&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;ctually I want to add some other special characters to this&amp;nbsp;&amp;nbsp;[^~`@#$ %\*]*&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Ravi&lt;/p&gt;</description></item><item><title>Re: Disallow spaces and special characters in a field</title><link>https://www.infopathdev.com:443/forums/thread/44535.aspx</link><pubDate>Fri, 17 Jul 2009 14:48:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44535</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44535.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44535</wfw:commentRss><description>&lt;p&gt;Works great for me, too.&amp;nbsp; I had no idea you could do syntax like that for a custom pattern.&amp;nbsp; Thanks for the lesson, Hilary.&lt;/p&gt;</description></item><item><title>Re: Disallow spaces and special characters in a field</title><link>https://www.infopathdev.com:443/forums/thread/44534.aspx</link><pubDate>Fri, 17 Jul 2009 14:38:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44534</guid><dc:creator>vivasuzi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44534.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44534</wfw:commentRss><description>&lt;p&gt;Thanks I tried the second one out and it works great :)&lt;/p&gt;</description></item><item><title>Re: Disallow spaces and special characters in a field</title><link>https://www.infopathdev.com:443/forums/thread/44425.aspx</link><pubDate>Wed, 15 Jul 2009 23:57:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44425</guid><dc:creator>vivasuzi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44425.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44425</wfw:commentRss><description>&lt;p&gt;Thanks so much.&amp;nbsp; Sounds like what I was looking for.&amp;nbsp; I will try it at work tomorrow.&amp;nbsp; FYI we have 2007.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks!!&lt;/p&gt;</description></item><item><title>Re: Disallow spaces and special characters in a field</title><link>https://www.infopathdev.com:443/forums/thread/44416.aspx</link><pubDate>Wed, 15 Jul 2009 21:06:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44416</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44416.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44416</wfw:commentRss><description>&lt;p&gt;Well, Clayton makes a good point. Much better to just set the expression for the characters to ALLOW, since there are only 3. Here&amp;#39;s another copy, this time I saved as 2003 compat.&lt;/p&gt;</description></item><item><title>Re: Disallow spaces and special characters in a field</title><link>https://www.infopathdev.com:443/forums/thread/44413.aspx</link><pubDate>Wed, 15 Jul 2009 20:58:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44413</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44413.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44413</wfw:commentRss><description>&lt;p&gt;You should probably use data validation and use a regular expression to give a validation error if they include characters you won&amp;#39;t accept. I&amp;#39;ve attached a simple sample xsn to this post that might help you. You can right click and select save as to save locally, then right click the file and open in design mode to preview. Let me know if you are still using IP 2003 -- I can post IP 2003 compatible.&lt;/p&gt;</description></item></channel></rss>