<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Applying function in Calculated Field</title><link>https://www.infopathdev.com:443/forums/thread/102882.aspx</link><pubDate>Fri, 19 Jun 2015 22:44:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102882</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102882.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102882</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I think you have the formula backwards - substring-before(field_name, &amp;quot;,&amp;quot;)&lt;/p&gt;</description></item><item><title>Applying function in Calculated Field</title><link>https://www.infopathdev.com:443/forums/thread/102877.aspx</link><pubDate>Fri, 19 Jun 2015 06:57:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102877</guid><dc:creator>vish_045</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102877.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102877</wfw:commentRss><description>Hi Folks,

I have a form with a drop-down field. The drop-down fetches value from database. The format of the value is.... SD123,Name. After the form is submiited a view is opened to print the form. In which in the calulated value field SD123,Name is displayed. I want to display only SD123 (i.e crop details after ,) i tried using function substring-before(&amp;quot;,&amp;quot;, field_name) but its not working.

I cannot add new fields to do this as the existing form will show blank for the same. Kindly help.

Thanks in advance.</description></item></channel></rss>