<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How can I make a button visible to specified users/hide from unauthorized users?</title><link>https://www.infopathdev.com:443/forums/thread/118601.aspx</link><pubDate>Fri, 23 Mar 2018 00:19:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118601</guid><dc:creator>jenielle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118601.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118601</wfw:commentRss><description>Hilary, this is an awesome resource! I&amp;#39;ve book marked it so I can learn more :) Thanks again!  --  I&amp;#39;m going to jump back over to trying to fix those conflicting number fields. I&amp;#39;m sure we&amp;#39;ll talk soon. Enjoy your evening!</description></item><item><title>Re: How can I make a button visible to specified users/hide from unauthorized users?</title><link>https://www.infopathdev.com:443/forums/thread/118600.aspx</link><pubDate>Thu, 22 Mar 2018 23:28:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118600</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118600.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118600</wfw:commentRss><description>I&amp;#39;m so happy you were able to implement this! Now you are no longer stuck with just 5 conditions - you can also build more complex conditions as you start to get more familiar. You may want to look into XPath and XPath filters - once you are a little more comfortable with it, a lot of things get easier. I&amp;#39;ve used InfoPath for teaching myself some of it - creating conditions, then changing the first dropdown to &amp;quot;the expression&amp;quot; and seeing what the XPath is, or selecting &amp;quot;Edit XPath&amp;quot; in the function editor. Here is one of my favorite sites that has good visual examples as well: &lt;a href="http://zvon.org/xxl/XPathTutorial/Output/examples.html"&gt;http://zvon.org/xxl/XPathTutorial/Output/examples.html&lt;/a&gt;</description></item><item><title>Re: How can I make a button visible to specified users/hide from unauthorized users?</title><link>https://www.infopathdev.com:443/forums/thread/118599.aspx</link><pubDate>Thu, 22 Mar 2018 23:19:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118599</guid><dc:creator>jenielle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118599.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118599</wfw:commentRss><description>Hi Hilary,

First off, let me say - HAT&amp;#39;S OFF TO YOU! I don&amp;#39;t know HOW in the world you make the time to help so many people such as myself, but I want to sincerely THANK YOU for your help - and willingness to do so! I would NOT be able to pull this off without you.
Second, I don&amp;#39;t know HOW or WHY, but I did not receive a notification as I normally do, alerting me that you responded. So I actually spent a great deal of time today researching expressions to better understand your instruction from yesterday, and I am pleased to say that I successfully created the expression and it worked! I am super excited and proud of myself - cause that was actually pretty sophisticated for me and way outside my comfort zone. But nonetheless, THANK YOU for the detailed response and samples. You are a HUGE help! Enjoy the rest of your evening.
Jen</description></item><item><title>Re: How can I make a button visible to specified users/hide from unauthorized users?</title><link>https://www.infopathdev.com:443/forums/thread/118589.aspx</link><pubDate>Wed, 21 Mar 2018 22:34:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118589</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118589.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118589</wfw:commentRss><description>That was what I meant, yeah. You may have to take the expression approach. It isn&amp;#39;t as bad as it sounds. Here&amp;#39;s a screenshot that may help. If you get stuck, attach your form under the options tab to a reply and I&amp;#39;ll give you a hand.</description></item><item><title>Re: How can I make a button visible to specified users/hide from unauthorized users?</title><link>https://www.infopathdev.com:443/forums/thread/118588.aspx</link><pubDate>Wed, 21 Mar 2018 22:28:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118588</guid><dc:creator>jenielle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118588.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118588</wfw:commentRss><description>Hi Hilary,
Thanks for your suggestion. I am not familiar/comfortable with expressions at all. But I can show you what I did try (1st attachment - &amp;quot;Rule 1 (5 lines).&amp;quot; That worked great - thanks again! So I thought I could copy/paste that rule and update the text/names in the first three lines, and delete the two additional lines not needed (essentially, Rule 2 (3 lines)), but then none of them worked. But is that basically what you meant when you said add a second condition with the additional names, or did I totally misunderstand and screw this up? The expression idea crossed my mind, but I know nothing about writing expressions. :(</description></item><item><title>Re: How can I make a button visible to specified users/hide from unauthorized users?</title><link>https://www.infopathdev.com:443/forums/thread/118587.aspx</link><pubDate>Wed, 21 Mar 2018 22:15:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118587</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118587.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118587</wfw:commentRss><description>I think what makes it hard for me is that the conditions are for hiding, not showing... add in a &amp;quot;not&amp;quot; and my brain sort of blows up. That&amp;#39;s why I end up writing it out story problem style. Glad this fixed it! For more than five lines you have a couple options - you could add a second condition with the additional names (and a third and so on). Or, if you set up your conditions and change the first dropdown in one of them to &amp;quot;the expression&amp;quot; you can see the actual XPath, and copy that out into a text editor. You can then build up a single expression with all of your conditions (using &amp;quot;and&amp;quot;) and paste that back in.</description></item><item><title>Re: How can I make a button visible to specified users/hide from unauthorized users?</title><link>https://www.infopathdev.com:443/forums/thread/118584.aspx</link><pubDate>Wed, 21 Mar 2018 21:37:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118584</guid><dc:creator>jenielle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118584.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118584</wfw:commentRss><description>Hi Hilary! 

Thank you for getting back to me so quickly. I am new to InfoPath and this logic and conditions stuff is not a strong point for me. I made your suggested change and it worked! You are AMAZING!

However I still have a minor issue. The condition is limited to 5 lines, and I have 8 users that are authorized users. I thought maybe I could copy that rule and for the second one, update the three lines with the additional names, and now it isn&amp;#39;t working again. What do you do when you have more than 5 lines? Should I take a different approach?

Thank you, Thank you, Thank you again!
Jen</description></item><item><title>Re: How can I make a button visible to specified users/hide from unauthorized users?</title><link>https://www.infopathdev.com:443/forums/thread/118582.aspx</link><pubDate>Wed, 21 Mar 2018 21:29:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118582</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118582.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118582</wfw:commentRss><description>Your approach for does not contain was close... but I think you wanted &amp;quot;and&amp;quot; instead of &amp;quot;or&amp;quot;. So, &amp;quot;if current user does not contain John AND current user does not contain Ann AND current user does not contain Bill, hide this control&amp;quot; - kind of goofy but I often have to write out logic in plain English in order to implement it correctly. :)</description></item><item><title>How can I make a button visible to specified users/hide from unauthorized users?</title><link>https://www.infopathdev.com:443/forums/thread/118581.aspx</link><pubDate>Wed, 21 Mar 2018 21:23:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118581</guid><dc:creator>jenielle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118581.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118581</wfw:commentRss><description>Hello,
I am trying to create a section on my form that is only visible to authorized users. I have already created a &amp;quot;Current User&amp;quot; field which detects the name of the person completing the form (in SharePoint online), and I want to create a rule such that if the user is not one of a specified group of users, the section would be hidden. I&amp;#39;ve tried creating the following rule and switching it around a couple ways, with no luck:

Approach 1: Created one field, Current user and created rule on section, &amp;quot;If Current User does not contain) Name 1, then hide this section.&amp;quot;  --  That test worked

However, when I tried to expand on that rule&amp;#39;s condition to include additional users, it didn&amp;#39;t work. Here&amp;#39;s what I did for that one:
Approach 2: &amp;quot;If Current User does not contain) Name 1 or Name 2 or Name 3 or Name 4 or Name 5 then hide this section.&amp;quot;  --  This did not work

I then tried a third approach wherein I created another field called &amp;quot;Authorized Users&amp;quot; (text box field) wherein I entered the user names of each individual, separated by a semicolon (ie Name1; Name2; Name3; etc...) 
I then created a rule called AuthenticateUser as follows: &amp;quot;If Authorized Users does not contain and I entered one username (as text), then hide this control.  --  This did not seem to work either.

Can someone please tell me how, or better yet, if what I trying to achieve can be done, and if so, how?

Thank you SO much!
Jen</description></item></channel></rss>