<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: key stroke detection in TextField?</title><link>https://www.infopathdev.com:443/forums/thread/88739.aspx</link><pubDate>Mon, 08 Apr 2013 04:19:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88739</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88739.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88739</wfw:commentRss><description>&lt;p&gt;Hi Rob,&lt;/p&gt;&lt;p&gt;No, InfoPath doesn&amp;#39;t support this.&amp;nbsp;&amp;nbsp;For small field validation (16 characters or less), you could break them up into 1 character fields with each one next to another so it looks like a composite field. Then, you can right click each field and on the Display tab check the &amp;quot;Limit text box to: 1 character&amp;quot; box and also check the &amp;quot;Move to next control automatically when limit reach&amp;quot; checkbox. Then, you can add a calculated value that auto-calculates the remaining characters. In theory, you could do this with a 255 character field, but it would involve adding 255 1-character attributes underneath the field and so it would be way overkill, but you could do it.&lt;/p&gt;&lt;p&gt;Good luck,&lt;/p&gt;&lt;p&gt;P&lt;/p&gt;</description></item><item><title>key stroke detection in TextField?</title><link>https://www.infopathdev.com:443/forums/thread/88725.aspx</link><pubDate>Sat, 06 Apr 2013 22:13:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88725</guid><dc:creator>RobSil1976</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88725.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88725</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;Is it possible programatically to detect key strokes in a text field?&amp;nbsp; I want to add a&amp;nbsp;&amp;quot;Comments&amp;quot; box to a form and have a counter underneath it that indicates how many characters left in the &amp;quot;max limit&amp;quot; of the field?&amp;nbsp; e.g....&lt;/p&gt;&lt;p&gt;Comments:&lt;/p&gt;&lt;p&gt;[............. text box ..............]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0 of 255)&amp;nbsp; &amp;lt;--- becomes (1 of 255) after a letter is entered.&lt;/p&gt;&lt;p&gt;In theory on each key stroke I would check length of the comments field, ask for max length attribute then format a message and put it inot another field.&amp;nbsp; Not sure if Infopath provides a mechanism for doing this?&lt;/p&gt;&lt;p&gt;Thx,&lt;/p&gt;&lt;p&gt;Rob&lt;/p&gt;</description></item></channel></rss>