Field Visibility configuration in InfoPath designer 2010 based on SharePoint user groups - InfoPath Dev
in

InfoPath Dev

Field Visibility configuration in InfoPath designer 2010 based on SharePoint user groups

Last post 03-28-2013 07:03 AM by Karthikeyan S. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-26-2013 10:43 PM

    Field Visibility configuration in InfoPath designer 2010 based on SharePoint user groups

    Hi All,

    I hope this is a peculiar requirement.

    It goes like this...

    Whenever a designer designs an Infopath form, he/she must have a provision to set few fields in the form visible only to specific user groups in SharePoint.

    If we use the in-built conditional formatting for setting/configuring the visibility of a field, we cannot set/configure the visibility based on user groups of sharepoint.

    So, how to provide the designer this visibility configuration facility in InfoPath designer based on sharepoint user groups?

    Please, kindly share your valuable suggestions and ideas to accomplish this requirement.

    Many Thanks in advance!

  • 03-27-2013 01:55 AM In reply to

    Re: Field Visibility configuration in InfoPath designer 2010 based on SharePoint user groups

    Perhaps allow passwords...

     Create a textbox for username and passwords and set the conditional formatting to

    Username not equal to.... and list a load of usernames and then

    Password not equal to.... and the passwords.

    Then hide this control.

    Or, if you prefer, do username is equal to..... hide this control.  I do this for some of my infopath forms as I work for my local council so only certain users must access certain parts of the form.

     

    This might work, it depends on what version of InfoPath you are using...  Not sure if this answers your question or not but hope it helps. :p

  • 03-27-2013 05:50 AM In reply to

    Re: Field Visibility configuration in InfoPath designer 2010 based on SharePoint user groups

     You can use the GetGroupCollectionFromUser service - something like this - http://blog.symprogress.com/2011/05/infopath-list-form-hidedisable-fields-based-on-sharepoint-group-membership/

    Although I often find it easier to just create a SP list. Create a data connection to the list. Use the title field for you domain\username credentials.

    Then conditionally format the section, based on title and a current user field on form load.

  • 03-28-2013 07:03 AM In reply to

    Re: Field Visibility configuration in InfoPath designer 2010 based on SharePoint user groups

    Hi Wilkies,

    I tried following the steps provided in the link, but irrespective of any logged in user the field is getting invisible.

    The same problem is reported by Or Cingilli on August 18, 2011 at 3:18 pm in that link but no reply from the author of the link.

    Please kindly let me know whether you have any ideas to resolve this issue.

     Thanks

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