<?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: validate length on multi-line text box with paragraph breaks</title><link>https://www.infopathdev.com:443/forums/thread/65328.aspx</link><pubDate>Mon, 21 Mar 2011 19:11:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65328</guid><dc:creator>tafavorite</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65328.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65328</wfw:commentRss><description>&lt;p&gt;I just tried this, wish someone would have commented if it had worked and it does. Hoepfully if someone comes across this they can take it that it works. I have tested it. Just set the 100 to whatever character limit you want though. But this works. thank&amp;nbsp;you.&lt;/p&gt;</description></item><item><title>Re: validate length on multi-line text box with paragraph breaks</title><link>https://www.infopathdev.com:443/forums/thread/27662.aspx</link><pubDate>Thu, 03 Apr 2008 14:40:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27662</guid><dc:creator>Albert</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27662.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27662</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;Add the following&amp;nbsp;validation expression on textfield: string-length(.) &amp;gt; 100&lt;/p&gt;
&lt;p&gt;A newline is counted as 1 char.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Albert&lt;/p&gt;</description></item><item><title>Re: validate length on multi-line text box with paragraph breaks</title><link>https://www.infopathdev.com:443/forums/thread/27654.aspx</link><pubDate>Thu, 03 Apr 2008 10:11:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27654</guid><dc:creator>CraigW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27654.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27654</wfw:commentRss><description>&lt;p&gt;Hi Clay,&lt;/p&gt;
&lt;p&gt;No, my problem is just the opposite.&amp;nbsp; I want to set a character limit on a multi-line text box but still allow paragraph breaks.&amp;nbsp; InfoPath seems to have no way to do this.&lt;/p&gt;
&lt;p&gt;Craig&lt;/p&gt;</description></item><item><title>Re: validate length on multi-line text box with paragraph breaks</title><link>https://www.infopathdev.com:443/forums/thread/27636.aspx</link><pubDate>Wed, 02 Apr 2008 19:01:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27636</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27636.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27636</wfw:commentRss><description>&lt;p&gt;You can put character limits on fields in properties.&lt;/p&gt;
&lt;p&gt;I was thinking you were breaking it up to get around the default limits with basic SQL connectivity.&amp;nbsp; With web services you do not have that limit.&lt;/p&gt;
&lt;p&gt;You can take a lot of data with an Nvarchar(Max) vs an Ntext.&lt;/p&gt;
&lt;p&gt;If you need help or want to see an example of how I do it just let me know.&lt;/p&gt;</description></item><item><title>Re: validate length on multi-line text box with paragraph breaks</title><link>https://www.infopathdev.com:443/forums/thread/27632.aspx</link><pubDate>Wed, 02 Apr 2008 16:00:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27632</guid><dc:creator>CraigW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27632.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27632</wfw:commentRss><description>&lt;p&gt;Hi Clay,&lt;/p&gt;
&lt;p&gt;Thanks.&amp;nbsp; I really need to go the other way though.&amp;nbsp; My form has many textboxes and I am sending it to a webservice then on to SQL.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I want the users to be able to enter paragraph breaks but still restrict the amount of data that they can enter, instead of letting them enter tons of data and having to use ntext columns in SQL.&lt;/p&gt;
&lt;p&gt;Can it be done?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Craig&lt;/p&gt;</description></item><item><title>Re: validate length on multi-line text box with paragraph breaks</title><link>https://www.infopathdev.com:443/forums/thread/27624.aspx</link><pubDate>Wed, 02 Apr 2008 14:23:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27624</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27624.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27624</wfw:commentRss><description>&lt;p&gt;Hi Craig Welcome to the forum.&lt;/p&gt;
&lt;p&gt;If you need to be able to send large data types, rich text, more than the 256 character limit to SQL, I could show you how to do this. it sounds like that would solve a lot of headaches for you. Email me and I could show you.&lt;/p&gt;</description></item><item><title>validate length on multi-line text box with paragraph breaks</title><link>https://www.infopathdev.com:443/forums/thread/27616.aspx</link><pubDate>Wed, 02 Apr 2008 08:11:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27616</guid><dc:creator>CraigW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27616.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27616</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I need to have a multi-line text box that validates for length and allows paragraph breaks.&amp;nbsp; I have seen a solution on here to use a pattern match against, e.g.,&amp;nbsp;&amp;quot;.{101,}&amp;quot; for a 100-character limit, however, I am finding that this technique only works if the user does not enter any paragraph breaks!&lt;/p&gt;
&lt;p&gt;Does anyone have a solution for this that actually works?&amp;nbsp; It needs to work as a single xsn for both InfoPath 2003 and 2007.&lt;/p&gt;
&lt;p&gt;Is the general accepted approach just to make all multi-line textbox fields match against ntext in the SQL database and not enforce any length validation?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Craig&lt;/p&gt;</description></item></channel></rss>