please help... how to hide a button unless it is a specific person? - InfoPath Dev
in

InfoPath Dev

please help... how to hide a button unless it is a specific person?

Last post 10-26-2012 07:01 AM by luke20. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 10-26-2012 02:09 AM

    please help... how to hide a button unless it is a specific person?

    I need to have my form done by the end of today, and for security the approve button on the form must be hidden unless it is a specific person in the organisation who opens the form. How would i set up a formatting rule on this button to say if not this person then hide this control ? thanks
  • 10-26-2012 03:29 AM In reply to

    Re: please help... how to hide a button unless it is a specific person?

    For example (other variants are possible) , set a formatting rule on your approve button in Infopath Designer:

    • Home tab on ribbon > Manage Rules > New > Formatting > Hide this control (and/or Disable this control) with "Condition:" there that user is not that specific one

    How you work with and manage users depends (is it filler or browser form,  2007 or 2010)

    You can prefer to use  sharepoint built-in UserProfileService.asmx web service or other methods

    userName() will give you local logged-in username on client machine operating system and sharepoint accountname username from browser

    You can create a helper datafield (without control) setting there username for creating a condition in the rule

    I enclosed athe template demonstrating it (for a local username Administrator). Probably to fit with a situation of a form in browser, you simply can add "Or"-check in condition

    Gennady Vanin (Novosibirsk) --- Геннадий Ванин (Новосибирск)
  • 10-26-2012 07:01 AM In reply to

    Re: please help... how to hide a button unless it is a specific person?

    thanks for your answer :)
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.