Hi,
We are using Smartforms for SharePoint 2013.
We have a requirementt to show some specific fields only to specific user group in SharePoint.
Can this be done in Smarforms?
Any help would be highly appreciated.
Regards,
Arun
Hi,
We are using Smartforms for SharePoint 2013.
We have a requirementt to show some specific fields only to specific user group in SharePoint.
Can this be done in Smarforms?
Any help would be highly appreciated.
Regards,
Arun
Hi
You can hide specific elements of a form to different users by configuring a rule set on a form.
This link describes how to do so in smartforms.
You can always set conditions to show or hide a form control. Although, I cannot see a out of the box methd on botht he AD service intstance to check if a user is a member of a group. I think you will have to write custom code to create a smartobject that you pass a user fqdn and groupname and tehn it checks if the user is a member of that group and return true or false. and then on the form iniliase method, you can adda rule that firstly calls that smartobject ethod and writes the output to a data label. and then have a rule after that rule where if data label is true then hide these controls. else show.
Arun,
Follow the below steps and see if you could achieve your requirement
1.Create a role in workspace and assign users to that group
2.when form is initializing, execute a user smartobject method to get role users, in this rule configure a filter to check if the current user available in the role defined in workspace.
3.then transfer the name or a unique identifier to a customer datalabel in your form
4.then in the rule , build a condition , if the field is not empty, hide fields,else show etc..
hope this would help you to build your logic.
Thanks
MN
Hi,
You can try some thing as explained in below post
https://k2recipes.wordpress.com/2017/05/31/how-to-set-k2-smartform-runtime-authorization/
@Mani-Natarajan wrote: Arun,
Follow the below steps and see if you could achieve your requirement
1.Create a role in workspace and assign users to that group
2.when form is initializing, execute a user smartobject method to get role users, in this rule configure a filter to check if the current user available in the role defined in workspace.
3.then transfer the name or a unique identifier to a customer datalabel in your form
4.then in the rule , build a condition , if the field is not empty, hide fields,else show etc..
hope this would help you to build your logic.
Thanks
MN
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.