Form permissions to edit or not

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Dars
Posts: 12
Joined: Thu Apr 07, 2016

08 Apr 2016

Hello,

I'm currently evaluating spform on our Sharepoint 2013 Foundation. So far, it looks really interesting!

I have created a list where users can create entries using the New Form which works fine. I have one field in this list defined as "People" where we can identify who is the person responsible for this entry.

Now I would like to have only the creator of this entry and also the person assigned to this responsible field to be able to edit the list entry.

I have created two different Edit Form (All users version + User-defined rule) because the editable fields vary but I don't want other people to be able to edit the entry. Is there any way I can manage this?

Thank you!

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

11 Apr 2016

Hello,

Not sure if I got you completely. But, as you already know, you can provide different forms to different users via user group rules. To identify if the standard Created By field contains the current user just do

ContainsCurrentUser([Created By])
in the user defined rule editor.

If you want to captchure users in the created by field and in the people field you can simply do:

Code: Select all

ContainsCurrentUser([Created By]) || ContainsCurrentUser([People])
Does that answer your question?

Dars
Posts: 12
Joined: Thu Apr 07, 2016

11 Apr 2016

Sorry, I wasn't really clear ;)

Actually, it's not really a spform problem but I think that using spform I can manage it somehow.

Based on Sharepoint security, my users have access to create & edit entries in the list. They should be allowed to edit entries created by someone else if the creator of the record put their name in a people field of the list. However if they are not the creator of the record and if their name is not in that people field, they should not be able to edit the record.

I managed it by creating a user-defined rule form that simply prints "You're not allowed to edit that record" and by also removing the "Save" button.

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

11 Apr 2016

Yes, you can do that. You can also put all your fields in read only mode.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests