Personalizing forms based on the current user membership and field values.

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
ching29
Posts: 15
Joined: Thu Mar 13, 2014

19 Mar 2014

I found a tutorial video that personalize forms based on its current user membership and field values but it is using the group functionality that is NOT supported in Office 365. Is there any workaround about this? Please advise. Thank you.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

21 Mar 2014

Hello,

Thank you for your question. You are correct, Forms Designer for Office 365 does not support Groups functionality.

As for workaround, you can put HTML-control onto your form and place the following code there:

Code: Select all

<script type="text/javascript">
// This code will be executed for all users
</script>
<SharePoint:SPSecurityTrimmedControl runat="server" PermissionsString="ManageWeb">
    <script type="text/javascript">
    // This code will be executed for users with Manage Web permission only
    </script>
</SharePoint:SPSecurityTrimmedControl>
As you may see, you can define JavaScript code which will be executed for users which have the specific right only. So, you can hide fields via JS-framwork for all users in the first JavaScript block and show them to users with the required permission only in the second JavaScript block.

You can find the complete list of permissions in the following article:

http://msdn.microsoft.com/EN-US/library/ms412690

ching29
Posts: 15
Joined: Thu Mar 13, 2014

22 Mar 2014

Hi Dmitry,

What if I want to have a rule based on a scpecific field?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

24 Mar 2014

You can retrieve field values via JavaScript framework and modify other fields or hide/show them based on these values. Please, see the following post to get more information:
http://spform.com/forms-designer- ... point-2010

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests