<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Infopath:  Restricting alphanumeric values in a text field</title><link>https://www.infopathdev.com:443/forums/thread/34061.aspx</link><pubDate>Mon, 10 Nov 2008 18:48:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34061</guid><dc:creator>sind2008</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34061.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34061</wfw:commentRss><description>&lt;p&gt;Thankyou very much for helping &amp;nbsp;me!. This is the code worked for me.&lt;/p&gt;
&lt;p&gt;XDocument.Util.Match(xmlDom.selectSingleNode(&amp;quot;//my:Ans210&amp;quot;).text, &amp;quot;\\d*&amp;quot;)&lt;/p&gt;</description></item><item><title>Re: Infopath:  Restricting alphanumeric values in a text field</title><link>https://www.infopathdev.com:443/forums/thread/34044.aspx</link><pubDate>Mon, 10 Nov 2008 06:25:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34044</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34044.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34044</wfw:commentRss><description>&lt;font face="Calibri"&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font size="3"&gt;Hi Sind,&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font size="3"&gt;You can change the data type of that field to integer. So that it can accept only integer values. Another way is adding a validation for the control by using custom patterns. The condition should be like ‘not(xdUtil:Match(string(.), &amp;quot;\d*&amp;quot;))’ .&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Infopath:  Restricting alphanumeric values in a text field</title><link>https://www.infopathdev.com:443/forums/thread/34037.aspx</link><pubDate>Sun, 09 Nov 2008 15:36:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34037</guid><dc:creator>sind2008</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34037.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34037</wfw:commentRss><description>&lt;p&gt;Jimmy,&lt;/p&gt;
&lt;p&gt;Thank you so much for your response.&amp;nbsp; I want to&amp;nbsp;allow only Numbers in&amp;nbsp;a text field. The issue is if the users enters alphanumeric(e.g 100k), I will get a runtime error, due to the non-numeric value in a evaluate expression. &amp;nbsp;&amp;nbsp;&amp;nbsp;I am using JScript to calculate a %.&amp;nbsp;&amp;nbsp; I don&amp;#39;t want to allow user to enter alphanumeric values.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Sind&lt;/p&gt;</description></item><item><title>Re: Infopath:  Restricting alphanumeric values in a text field</title><link>https://www.infopathdev.com:443/forums/thread/34028.aspx</link><pubDate>Sun, 09 Nov 2008 05:29:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34028</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34028.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34028</wfw:commentRss><description>&lt;p&gt;You can check whether the number is a valid number and if it&amp;#39;s not, skip the calculation and show the user an error.&lt;/p&gt;
&lt;p&gt;It would be easier to give you a more specific answer if you would show us the part of your code that is causing the error.&lt;/p&gt;</description></item><item><title>Infopath:  Restricting alphanumeric values in a text field</title><link>https://www.infopathdev.com:443/forums/thread/34026.aspx</link><pubDate>Sat, 08 Nov 2008 17:54:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34026</guid><dc:creator>sind2008</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34026.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34026</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;I am using Infopath 2003 SP2 to build a form. I need help on how to restrict only numbers on a data entry field. Like input mask in MS access. I am using Jscript to calculate totals using this field that time I am getting a runtime error if user enters a alphanumeric ( e.g. 40K) and asking &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;Do you want to Debug? I don’t want this Run time error show, what I need to do? Thank you in advance for your &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;help. &lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>