<?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: Return the first character in a field</title><link>https://www.infopathdev.com:443/forums/thread/20336.aspx</link><pubDate>Mon, 04 Jun 2007 07:55:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20336</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20336.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20336</wfw:commentRss><description>A formula is definitely the way to go here.&amp;nbsp; No need to add extra code when it&amp;#39;s unnecessary.</description></item><item><title>Re: Return the first character in a field</title><link>https://www.infopathdev.com:443/forums/thread/20308.aspx</link><pubDate>Thu, 31 May 2007 15:39:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20308</guid><dc:creator>mentalblock</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20308.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20308</wfw:commentRss><description>&lt;p&gt;Thanks for the quick reply.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I didn&amp;#39;t end up using your suggestion though, as a co-worker gave me an easier solotion with no coding involved.&lt;/p&gt;&lt;p&gt;I entered the following formula into default value of the text box where I want the result:&lt;/p&gt;&lt;p&gt;concat(textboxone, substring(textboxtwo, 1, 1))&lt;/p&gt;&lt;p&gt;It appears to work like this.&lt;/p&gt;</description></item><item><title>Re: Return the first character in a field</title><link>https://www.infopathdev.com:443/forums/thread/20303.aspx</link><pubDate>Thu, 31 May 2007 13:57:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20303</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20303.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20303</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I would do that in code. See example below:&lt;/p&gt;&lt;p&gt;var contentOfTextBoxOne = XDocument.DOM.selectSingleNode(&amp;quot;my:myField/my:textBoxOne&amp;quot;).text;&lt;/p&gt;&lt;p&gt;var temp = XDocument.DOM.selectSingleNode(&amp;quot;my:myField/my:textBoxTwo&amp;quot;).text;&lt;/p&gt;&lt;p&gt;var firstCharacter = temp.substring(0,1);&lt;/p&gt;&lt;p&gt;var concatString = contentOfTextBoxOne + firstCharacter;&lt;/p&gt;&lt;p&gt;Does this help ?&lt;/p&gt;</description></item><item><title>Return the first character in a field</title><link>https://www.infopathdev.com:443/forums/thread/20302.aspx</link><pubDate>Thu, 31 May 2007 13:31:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20302</guid><dc:creator>mentalblock</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20302.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20302</wfw:commentRss><description>&lt;p&gt;I am creating a welcome package for new employees in my company. One of my fields needs to be autofilled with the the contents of one text box and the first character of another text box.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I know how to concat. 2 full text boxes together but I need help in returning just the first character of the second text box.&lt;/p&gt;&lt;p&gt;Any suggestions?&lt;/p&gt;</description></item></channel></rss>