<?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: Removing the first character of a text string if it exists.</title><link>https://www.infopathdev.com:443/forums/thread/95034.aspx</link><pubDate>Mon, 06 Jan 2014 18:47:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95034</guid><dc:creator>fuzzbear</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95034.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=95034</wfw:commentRss><description>Thank you so much, I didn&amp;#39;t know that I could set a rule to just run like that! Thank you!</description></item><item><title>Re: Removing the first character of a text string if it exists.</title><link>https://www.infopathdev.com:443/forums/thread/95032.aspx</link><pubDate>Mon, 06 Jan 2014 17:36:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95032</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95032.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=95032</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;How about putting the following rule on the field in question:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;Condition: [field] starts with P&lt;/p&gt;&lt;p&gt;Action: Set [field] to substring([field], 2)&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;substring-after([field], &amp;quot;P&amp;quot;) should be able to remove the P from the field, but without a condition to stop the rule&amp;#39;s execution, it will run repeatedly until there&amp;#39;s nothing left in the field.&lt;/p&gt;</description></item><item><title>Removing the first character of a text string if it exists.</title><link>https://www.infopathdev.com:443/forums/thread/95029.aspx</link><pubDate>Mon, 06 Jan 2014 16:02:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95029</guid><dc:creator>fuzzbear</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95029.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=95029</wfw:commentRss><description>I have a form that users can fill out by either typing in by hand, or by using a barcode scanner attached to a computer. 

Unfortunately the bar-code contains an extra character we do not want. 
If a user scans our part number field, the scanner inputs &amp;quot;PXXXXXXXXX&amp;quot; 
If the user types in the number by hand they simply omit that P. 

SAP uses that first letter for something so I cannot have it removed from the label. 

The big problem is that our part numbers are alpanumeric and the Letter &amp;quot;P&amp;quot; could exist somewhere else in the field, so translate to a space wont work. 
I have tried substring-after, but it is blanking out the field no matter what I type. 


Anyone have any other suggestions? 

Ray</description></item></channel></rss>