button to be visible only to certain users - InfoPath Dev
in

InfoPath Dev

button to be visible only to certain users

Last post 05-03-2012 04:38 AM by ErnestoM. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-02-2012 05:53 AM

    • value
    • Not Ranked
    • Joined on 04-30-2012
    • Posts 13

    button to be visible only to certain users

    hello,

    I am using infopath 2007 to create a approval flow.is it possible to make the approval button to be viewed only by specific users.

  • 05-02-2012 07:41 AM In reply to

    Re: button to be visible only to certain users

     Yes, you can set up conditional formatting on the button. Of course, you would first need a way to determine who the current user is. This can be accomplished, for example, by querying active directory. Do you have a way of doing so? If yes, then query active directory to determine who the current user is, and then set up conditional formatting based on that. For example, If CurrentUser is not equal to jsmith, then hide this control.

    Good luck!

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 05-02-2012 09:35 AM In reply to

    • value
    • Not Ranked
    • Joined on 04-30-2012
    • Posts 13

    Re: button to be visible only to certain users

    i am publishing this form on a sharepoint,is it possible to determine the current user with active directory.i am new to infopath.i am not sure how to include active directory and how it works

  • 05-03-2012 04:38 AM In reply to

    Re: button to be visible only to certain users

     Hi-

    Here are links to two articles that should help, though a Google search will reveal more methods if these don't satisfy your needs. Good luck!

    http://claytoncobb.wordpress.com/2009/06/21/userprofileservice-extended/

    http://blogs.microsoft.co.il/blogs/itaysk/archive/2007/04/05/InfoPath-_2D00_-Get-the-current-user-without-writing-code.aspx?from=ClayCobb

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.