Page 1 of 1

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

Posted: 19 Mar 2014
by ching29
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.

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

Posted: 21 Mar 2014
by Dmitry Kozlov
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

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

Posted: 22 Mar 2014
by ching29
Hi Dmitry,

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

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

Posted: 24 Mar 2014
by Dmitry Kozlov
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