<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Function question- with Data Connection to Sharepoint List</title><link>https://www.infopathdev.com:443/forums/thread/98715.aspx</link><pubDate>Mon, 18 Aug 2014 07:39:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98715</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98715.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=98715</wfw:commentRss><description>&lt;p&gt;Hi Rauserka,&lt;br /&gt;&lt;br /&gt;For cases like this, I normally use a substring function in order to get a portion of a text string. Could you try using the formula below?&lt;br /&gt;&lt;br /&gt;substring(&lt;strong&gt;IDNumber&lt;/strong&gt;, string-length(&lt;strong&gt;IDNumber&lt;/strong&gt;) - 3, 4)&lt;br /&gt;&lt;br /&gt;IDNumber is for the IDNumber field you wish to truncate. The next value &lt;strong&gt;string-length(IDNumber) - 3&lt;/strong&gt; returns the number of characters the IDNumber contains and subtracts 3 from that number so that the returned value for the whole formula starts at the last four digits (e.g IDNumber: 123456789 will start from 6, which is the starting&amp;nbsp;point for the last four digits), and the last value 4 determines how may characters re returned. Hope this helps.&lt;/p&gt;</description></item><item><title>Function question- with Data Connection to Sharepoint List</title><link>https://www.infopathdev.com:443/forums/thread/98710.aspx</link><pubDate>Fri, 15 Aug 2014 15:37:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98710</guid><dc:creator>rauserka</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98710.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=98710</wfw:commentRss><description>&lt;p&gt;In my InfoPath form, I have a field labeled &amp;quot;ID number&amp;quot; where users have to input their number into.&amp;nbsp;My&amp;nbsp;Data Connection is set up to submit the form to a document library on a SharePoint site. I provided the link to the Document Library and for the File name- I inserted a formula to&amp;nbsp;pull the&amp;nbsp;&amp;quot;ID Number&amp;quot; field from the form. &lt;/p&gt;&lt;p&gt;The number displays on the SharePoint site but my&amp;nbsp;challenge is, I want to&amp;nbsp;truncate that ID number so users of the library will only see the last 4 digits. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Is there a way to insert a formula to include the &amp;quot;ID Number&amp;quot; field and have it truncate the last 4 digits in a Data Connection?&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;I tried this formula but it did not work- &lt;strong&gt;Right(IDNumber,4)&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>