<?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: How to apply trim() function for values in drop down?</title><link>https://www.infopathdev.com:443/forums/thread/79348.aspx</link><pubDate>Thu, 07 Jun 2012 17:20:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79348</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79348.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=79348</wfw:commentRss><description>Would you be able to attach your form to this thread so that we can see it?</description></item><item><title>Re: How to apply trim() function for values in drop down?</title><link>https://www.infopathdev.com:443/forums/thread/79344.aspx</link><pubDate>Thu, 07 Jun 2012 17:00:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79344</guid><dc:creator>chintan.desai</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79344.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=79344</wfw:commentRss><description>Thx Jimmy for your reply. I did it but triming only applies to 1st item in drop down :(</description></item><item><title>Re: How to apply trim() function for values in drop down?</title><link>https://www.infopathdev.com:443/forums/thread/79335.aspx</link><pubDate>Thu, 07 Jun 2012 15:04:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79335</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79335.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=79335</wfw:commentRss><description>&lt;p&gt;Are there any other fields in that data source that you&amp;#39;re not using?&amp;nbsp; If so, please try the following:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;Add a rule to set the value of the extra field to a value it wouldn&amp;#39;t normally have (like &amp;quot;go&amp;quot;) after the data is queried (probably a Form Load rule).&lt;/p&gt;&lt;p&gt;Add a rule to that extra field itself like the following:&lt;br /&gt;&amp;nbsp;&amp;nbsp; Condition: &lt;strong&gt;&lt;u&gt;FieldToFix&lt;/u&gt;&lt;/strong&gt; contains &lt;strong&gt;#;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;/strong&gt;Action: Set &lt;strong&gt;&lt;u&gt;FieldToFix&lt;/u&gt;&lt;/strong&gt; = substring-after(&lt;strong&gt;&lt;u&gt;FieldToFix&lt;/u&gt;&lt;/strong&gt;, &amp;#39;#;&amp;#39;)&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: How to apply trim() function for values in drop down?</title><link>https://www.infopathdev.com:443/forums/thread/79329.aspx</link><pubDate>Thu, 07 Jun 2012 13:05:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79329</guid><dc:creator>chintan.desai</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79329.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=79329</wfw:commentRss><description>Hi qwerty,

I tried it, trimming only apply to first item and not all items in dropdown. I wrote rules when form loads. Pls. advice further.</description></item><item><title>Re: How to apply trim() function for values in drop down?</title><link>https://www.infopathdev.com:443/forums/thread/65243.aspx</link><pubDate>Wed, 16 Mar 2011 18:17:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65243</guid><dc:creator>qwerty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65243.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=65243</wfw:commentRss><description>Hi Chintan, yes, you can use the function substring-after(@field, &amp;quot;#;&amp;quot;). It will return contents of the string after the first occurence of &amp;quot;#;&amp;quot;.</description></item><item><title>Re: How to apply trim() function for values in drop down?</title><link>https://www.infopathdev.com:443/forums/thread/65180.aspx</link><pubDate>Tue, 15 Mar 2011 12:52:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65180</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65180.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=65180</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;there is no out of box feature to do so, you will have to do it through code&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to apply trim() function for values in drop down?</title><link>https://www.infopathdev.com:443/forums/thread/65172.aspx</link><pubDate>Tue, 15 Mar 2011 12:05:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65172</guid><dc:creator>chintan.desai</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65172.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=65172</wfw:commentRss><description>Hi Folks,

I had drop down in Infopath which fetch values from Sharepoint List column. Values are coming correctly, but prefix with some junk data. e.g. &amp;quot;20#;CorrectValue1&amp;quot;. &amp;quot;20#;&amp;quot; are junk values

While research, I got to know that Sharepoint List column is lookup and it is referencing another Sharepoint List column. And junk value are row number in reference List. I mean - &amp;quot;20#;&amp;quot; is the 20th row for &amp;#39;CorrectValue1&amp;#39; in reference List.

Is there any Trim function to trim junk values. If yes, please let me know how to achieve this.

Please advice.

- Chintan</description></item></channel></rss>