0

I have a SharePoint public site and make it as online, I created a list called "questionnaire result".
I designed an HTML page for questionnaire by people, then I added the ContentEditor WebPart with script of save form into "questionnaire result" list, and everyone can open this page and submit form to save it into this list.

My question is:

How can people submit form and don't have edit permission in this list? Can I make Impersonating in my script to be save item by SharepointApp account?

0

If you have made this list as public than you can apply the unique permission on this list.

Go to list setting-> Permission for this list->Click on Stop Inheriting permission from Ribbon ->Click on Grant Permission and give Edit permission to everyone.

Using this , All users can edit this single list from the siteenter image description here

  • Or if you want user to add the record only, not to delete or update. in that case you can create the custom permission role with add item permission only and than assign that custom role to everyone so all user can submit the request only.they can not edit or delete the request. – Ramesh Dec 21 '17 at 14:53
  • i tried that , the list is not appear for users maybe Everyone mean all the sharepoint users and external users that i share this site to him , and i want to make this list also for any user – taher mohammad Dec 21 '17 at 15:05
  • in that case i think you need to Enable anonymous access on a list or library you can find more detail at support.office.com/en-gb/article/… – Ramesh Dec 21 '17 at 15:08
  • i tried it , but i don't know why anonymous users option is disable , see this image !Valid XHTML , maybe because the feature of public site will remove soon !! – taher mohammad Dec 21 '17 at 16:16
  • i can't edit the permission of anonymous users , do you have any idea about why? – taher mohammad Dec 21 '17 at 16:22
0

This behavior is unsafe. If users don't have permission to add a new item, you should not save their data in a list.

I suggest you create a custom permission level which only contains "New list item" for this list, then grant this custom permission level to users.

If you really want to achieve it by impersonation identity, you can use CSOM: What is the command to elevate privileges in the Sharepoint Online (Office 365)?

  • i created java script code directly to Content Editor web part on my page ( to insert html form into sharepoint list ) , but i cant update my script to be save item by system account (impersonation ) , can you help me to achieve it , with thanks – taher mohammad Dec 22 '17 at 15:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.