<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Check if a drop-down list contains a specific value</title><link>https://www.infopathdev.com:443/forums/thread/115952.aspx</link><pubDate>Fri, 31 Mar 2017 14:37:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115952</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115952.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=115952</wfw:commentRss><description>Any chance you could attach your form or a sample showing your issue under the Options tab in a reply?</description></item><item><title>Re: Check if a drop-down list contains a specific value</title><link>https://www.infopathdev.com:443/forums/thread/115951.aspx</link><pubDate>Fri, 31 Mar 2017 07:23:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115951</guid><dc:creator>MaroHamamjyan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115951.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=115951</wfw:commentRss><description>A little appendant.
I do not want to select any option in list box I just want the rule to work when the form is opened.
My main problem is to check if my list contains the username, and as data connections are not working on textboxes I had to use choice type controls</description></item><item><title>Re: Check if a drop-down list contains a specific value</title><link>https://www.infopathdev.com:443/forums/thread/115950.aspx</link><pubDate>Fri, 31 Mar 2017 06:28:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115950</guid><dc:creator>MaroHamamjyan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115950.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=115950</wfw:commentRss><description>Hi there

What if I need to check if the List Box in InfoPath, which is surely Choice type, contains the other control that gets the User Name? The expression is: contains(dfs:dataFields/my:SharePointListItem_RW/my:LineManagers, dfs:dataFields/my:SharePointListItem_RW/my:UserName)
What should I change in this expression?
P.S. List Box gets the values from data connection.
Thanks in advance</description></item><item><title>Re: Check if a drop-down list contains a specific value</title><link>https://www.infopathdev.com:443/forums/thread/92282.aspx</link><pubDate>Sun, 18 Aug 2013 23:37:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92282</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92282.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=92282</wfw:commentRss><description>&lt;p&gt;Please go to Clay&amp;#39;s SharePoint Madness blog site and post your comment there.&lt;/p&gt;</description></item><item><title>Re: Check if a drop-down list contains a specific value</title><link>https://www.infopathdev.com:443/forums/thread/92233.aspx</link><pubDate>Thu, 15 Aug 2013 18:39:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92233</guid><dc:creator>lmelchor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92233.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=92233</wfw:commentRss><description>Hi,

Im having the same issue and tried to use your instructions but I had a question:

Where do I enter the condition I am supposed to create?</description></item><item><title>Re: Check if a drop-down list contains a specific value</title><link>https://www.infopathdev.com:443/forums/thread/45906.aspx</link><pubDate>Sat, 15 Aug 2009 04:10:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45906</guid><dc:creator>lanita</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45906.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=45906</wfw:commentRss><description>&lt;p&gt;Thanks for your solution. I got it working now. In my case I needed &amp;quot;If Any Occurrences of drop down are equal to Current User then switch the view&amp;quot;.&lt;/p&gt;</description></item><item><title>Re: Check if a drop-down list contains a specific value</title><link>https://www.infopathdev.com:443/forums/thread/45841.aspx</link><pubDate>Fri, 14 Aug 2009 00:21:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45841</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45841.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=45841</wfw:commentRss><description>&lt;p&gt;this should be pretty simple.&amp;nbsp; Check out my blog post on User Roles in browser forms (I have 2 separate ones, but the concept is the same for hiding sections) and pay close attention to Figure 8:&lt;/p&gt;
&lt;p&gt;&lt;a title="InfoPath – User Roles in Browser-Enabled Forms Using AD&amp;nbsp;Groups" href="http://claytoncobb.wordpress.com/2009/07/19/infopath-user-roles-in-browser-enabled-forms-using-groups/"&gt;&lt;strong&gt;&lt;font color="#536d88"&gt;InfoPath&amp;nbsp;- User Roles in Browser-Enabled Forms Using AD&amp;nbsp;Groups&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&amp;quot;If All Occurrences of UserID are not equal to DropDownSelection, then Hide Section&amp;quot;&lt;/p&gt;</description></item><item><title>Re: Check if a drop-down list contains a specific value</title><link>https://www.infopathdev.com:443/forums/thread/45760.aspx</link><pubDate>Tue, 11 Aug 2009 20:59:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45760</guid><dc:creator>lanita</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45760.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=45760</wfw:commentRss><description>Here is how my data structure looks like:&lt;p&gt;-myFields&lt;/p&gt;&lt;p&gt;&amp;nbsp; -queryFileds&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; -tns:GetUserCollectionFromGroup&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; -Users&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; -User (this is a repeating group)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :Notes&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; :Name&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; :IsSiteAdmin &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; :Sid&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; :ID&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :LoginName&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :Email&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :IsDomainGroup&lt;/p&gt;&lt;p&gt;-dataFields&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; -tsn:GetUserCollectionFromGroupResponse&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; -GetUserCollectionFromGroupResult&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; -GetUserCollectionFromGroup&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; -Users&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -User (this is a repeating group)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :Notes&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; :Name&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; :IsSiteAdmin &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; :Sid&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; :ID&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :LoginName&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :Email&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :IsDomainGroup&lt;/p&gt;</description></item><item><title>Re: Check if a drop-down list contains a specific value</title><link>https://www.infopathdev.com:443/forums/thread/45757.aspx</link><pubDate>Tue, 11 Aug 2009 20:37:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45757</guid><dc:creator>lanita</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45757.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=45757</wfw:commentRss><description>Yes. But I also tried to query directly the data source. &lt;br /&gt;&lt;p&gt;&amp;nbsp;The rule is set under Tools-&amp;gt; Form Options -&amp;gt; Open and Save -&amp;gt; Rules.&lt;/p&gt;&lt;p&gt;And here is the codition for the rule:&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Documentum&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetUserCollectionFromGroupResponse/tns:GetUserCollectionFromGroupResult/tns:GetUserCollectionFromGroup/tns:User/@LoginName[.
= concat(&amp;quot;CORP\&amp;quot;, xdUser:get-UserName())]&lt;/p&gt;&lt;p&gt;&amp;nbsp;There is no option to set a filter on a data source when you set a condition in the first drop down and choose Select field or Group, so I did it manually in the expression.&lt;/p&gt;&lt;p&gt;And the rule is &amp;quot;switch data source&amp;quot; .&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="" /&gt;&lt;img alt="" /&gt; &lt;/p&gt;&lt;p&gt;&lt;img alt="" /&gt;&lt;img alt="" /&gt;&lt;/p&gt;&lt;img alt="" /&gt;&lt;p&gt;&lt;img alt="" /&gt;&lt;/p&gt;</description></item><item><title>Re: Check if a drop-down list contains a specific value</title><link>https://www.infopathdev.com:443/forums/thread/45755.aspx</link><pubDate>Tue, 11 Aug 2009 20:07:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45755</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45755.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=45755</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;So what you are doing is checking to see if a user is in a particular field from a secondary data source, and if so, changing a view? What does your rule look like and what is it set on?&lt;/p&gt;</description></item><item><title>Re: Check if a drop-down list contains a specific value</title><link>https://www.infopathdev.com:443/forums/thread/45753.aspx</link><pubDate>Tue, 11 Aug 2009 19:57:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45753</guid><dc:creator>lanita</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45753.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=45753</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m doing a check to see if the current user is in the drop-down (from secondary data source)&amp;nbsp; and switch to a different view if he is. So, instead of doing conditional formatting I&amp;#39;m adding a rule in the form options. &lt;/p&gt;&lt;p&gt;I followed the steps that you provided but it didn&amp;#39;t work for me.&lt;/p&gt;&lt;p&gt;Any help would be apprecatied &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Check if a drop-down list contains a specific value</title><link>https://www.infopathdev.com:443/forums/thread/29831.aspx</link><pubDate>Thu, 26 Jun 2008 18:47:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29831</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29831.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=29831</wfw:commentRss><description>&lt;p&gt;Beautiful! Glad you got it!&lt;/p&gt;</description></item><item><title>Re: Check if a drop-down list contains a specific value</title><link>https://www.infopathdev.com:443/forums/thread/29826.aspx</link><pubDate>Thu, 26 Jun 2008 18:35:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29826</guid><dc:creator>patricktx21</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29826.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=29826</wfw:commentRss><description>&lt;p&gt;Hi Hilary&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;may have solved the problem by querying the secondary data source directly and applying the conditional formatting based on the result.&amp;nbsp; The query which appears to be working is &lt;/p&gt;
&lt;p&gt;not(xdXDocument:GetDOM(&amp;quot;ETL Deployment Approvers&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:ETL_Deployment_Approvers/@Net_Id[. = xdUser:get-UserName()])&lt;/p&gt;
&lt;p&gt;Thanks for all your help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Patrick&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Check if a drop-down list contains a specific value</title><link>https://www.infopathdev.com:443/forums/thread/29824.aspx</link><pubDate>Thu, 26 Jun 2008 18:07:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29824</guid><dc:creator>patricktx21</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29824.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=29824</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you please tell me how to paste a screen shot into this forum? It doesn&amp;#39;t seem obvious to me.&lt;/p&gt;
&lt;p&gt;My options for the secondary data source come from an external source, a SharePoint list.&amp;nbsp; As an alternative I have also been trying to query the secondary data source to see if it contains the user id of the current user and then apply conditional formatting on the result of that query.&lt;/p&gt;
&lt;p&gt;Patrick&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Check if a drop-down list contains a specific value</title><link>https://www.infopathdev.com:443/forums/thread/29812.aspx</link><pubDate>Thu, 26 Jun 2008 16:25:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29812</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29812.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=29812</wfw:commentRss><description>&lt;p&gt;Could you post screen shots for me of your data source task pane to show me your schema? I do understand what you are trying to do, and was successful in the test form I used prior to responding to your first post. For my form, there&amp;nbsp;is a secondary data source providing the options in the drop down list -- are your options coming from your main data source? I think you may be able to do this with conditional formatting, but we need to make sure the filter on that condition is right...&lt;/p&gt;</description></item></channel></rss>