<?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: Infopath rules</title><link>https://www.infopathdev.com:443/forums/thread/85446.aspx</link><pubDate>Tue, 18 Dec 2012 16:02:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85446</guid><dc:creator>eissayouf</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85446.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=85446</wfw:commentRss><description>Thanks Jimmy. That syntax worked.</description></item><item><title>Re: Infopath rules</title><link>https://www.infopathdev.com:443/forums/thread/85406.aspx</link><pubDate>Tue, 18 Dec 2012 05:51:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85406</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85406.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=85406</wfw:commentRss><description>&lt;p&gt;Using an XPath expression to select between two or more values can usually get a bit messy.&amp;nbsp; In this case, this should work:&lt;/p&gt;&lt;p&gt;substring(userName(), string-length(substring-before(userName(), &amp;quot;\&amp;quot;)) + 2 * contains(userName(), &amp;quot;\&amp;quot;), 100)&lt;/p&gt;</description></item><item><title>Infopath rules</title><link>https://www.infopathdev.com:443/forums/thread/84258.aspx</link><pubDate>Wed, 07 Nov 2012 23:21:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84258</guid><dc:creator>eissayouf</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84258.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=84258</wfw:commentRss><description>&lt;p&gt;I would like to see if a database field contains some string&amp;nbsp;value then&amp;nbsp;show one filed and&amp;nbsp;if not show another field. I tried to do this in the rules by using &amp;quot;Contains&amp;quot; function in the form load rules, but it appears that I don&amp;#39;t know the syntax of the rule writing very well, so can somebody show me the syntax, if it is possible to do so. Somethign like this, but with correct syntax:&lt;/p&gt;&lt;p&gt;LoggedInAccount = (userName(), substring-after(userName(), &amp;quot;\&amp;quot;)&amp;nbsp; contains(userName(), &amp;quot;\&amp;quot;)&lt;/p&gt;</description></item></channel></rss>