<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Hide button in the form for requestors</title><link>https://www.infopathdev.com:443/forums/thread/92467.aspx</link><pubDate>Sun, 25 Aug 2013 01:57:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92467</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92467.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=92467</wfw:commentRss><description>&lt;p&gt;Doreen - thanks! I owe you one.&lt;/p&gt;
&lt;p&gt;Tesoro - forget about user roles or whatever. Just add fields to your form. One field for userRole. Another for workflowStatus. Set these fields in rules and then add formatting rules to hide-show based on them. &lt;/p&gt;
&lt;p&gt;keeping it simple &amp;amp; silly (KISS)&lt;/p&gt;</description></item><item><title>Re: Hide button in the form for requestors</title><link>https://www.infopathdev.com:443/forums/thread/92414.aspx</link><pubDate>Wed, 21 Aug 2013 22:05:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92414</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92414.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=92414</wfw:commentRss><description>&lt;p&gt;I am using IP 2007 so steps may be different but to set up user roles go to &lt;strong&gt;Tools &amp;gt; User roles.&lt;/strong&gt;&amp;nbsp; &lt;br /&gt;&lt;strong&gt;Add&lt;/strong&gt; User role by entering individual user names (from Active directory, Ex: dns\username), by group, or a name from the form.&lt;/p&gt;&lt;p&gt;&amp;nbsp;In your control properties under conditional formatting (in 2007 its on Display tab),&amp;nbsp;add a condition if &amp;quot;User&amp;#39;s current role&amp;quot; equals (or is not equal to)&amp;nbsp;&amp;lt;role you created&amp;gt;, do something (hide, disable format font, line etc etc)&lt;/p&gt;</description></item><item><title>Re: Hide button in the form for requestors</title><link>https://www.infopathdev.com:443/forums/thread/92368.aspx</link><pubDate>Tue, 20 Aug 2013 10:19:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92368</guid><dc:creator>Tesoro</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92368.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=92368</wfw:commentRss><description>Could anyone tell me how o do this step by step?</description></item><item><title>Re: Hide button in the form for requestors</title><link>https://www.infopathdev.com:443/forums/thread/92163.aspx</link><pubDate>Tue, 13 Aug 2013 10:05:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92163</guid><dc:creator>Tesoro</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92163.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=92163</wfw:commentRss><description>Hi Patrick,

Thank you for your answer. But for me it is not so easy :(

I have Infopath Filler 2010.

I know how to do formatting rules but I don&amp;#39;t know: How to do a workflow status? How to set the user role? Where and how to do this? How to connect this with the button?

Do I have to specify all users in e.g. sharepoint?

I will be grateful if you could tell me what should I do step by step or for any hints, tips.

Thank you in advance for response.</description></item><item><title>Re: Hide button in the form for requestors</title><link>https://www.infopathdev.com:443/forums/thread/92065.aspx</link><pubDate>Sat, 10 Aug 2013 19:08:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92065</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92065.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=92065</wfw:commentRss><description>&lt;p&gt;Hi Tesoro,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s easy. Just add formatting rules to hide your buttons when certain conditions are met based on the workflow status and current user role. &lt;/p&gt;
&lt;p&gt;If you are using browser form (not InfoPath client) you can substitute user profile name (GetUserProfileName in SharePoint) for the user role.&lt;/p&gt;
&lt;p&gt;If you have a workflow section with multiple buttons and you want to hide the entire section, just add the formatting rules to the section.&lt;/p&gt;
&lt;p&gt;Easy peazy!&lt;/p&gt;</description></item><item><title>Hide button in the form for requestors</title><link>https://www.infopathdev.com:443/forums/thread/92045.aspx</link><pubDate>Fri, 09 Aug 2013 14:38:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92045</guid><dc:creator>Tesoro</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92045.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=92045</wfw:commentRss><description>Hi,
I created an infopath form (in Infopath 2010) which has 2 buttons: 1) Send for approval 2) Approve

I would like to make something to hide button Approve for requestors (in form) and make it visible only for approvers (in form in e-mail).
How I imagine the workflow? User filling in the form and click Sent for approval button (there is linked  approver email) – the approve button is not visible to requestor. The form is sent to approver (outlook) who received the e-mail and has only the Approve button (there is linked other email). At the end the form is sending to other person to whom email is linked in Approve button.

My questions are:  how to do this to hide the button Approve in the template form for requestor and make it visible in the form in email for approver? how to do this to hide the button Sent for approval in the form in email?

I think that I should use the Rules and custom code option in the button but I am not sure and have no idea very small knowledge in programming.
Please, help me to find a solution. (please, please, please) :)


Thanks.</description></item></channel></rss>