2

I have created a sharepoint which has two sections to fill up. First section is where the user will fill up for train ticket booking and second section is for OFFICE USE ONLY.

This second section will be filled by general office staff after the form is submitted. Now I want to make all the fields in office use section as read only to the user and available for the general office staff only.

How can I achieve this?

Any help will be much appreciated.

1 Answer 1

2

If you're using classic view and office staff belongs to a SharePoint Group(or you create a group with these users), you could use JSOM to check whether current user belongs to this group, if user doesn't belongs to the group, disable the section(controls) by jQuery.

Check if current user belongs to SharePoint group via CSOM (JavaScript)

Disable a form element using the .prop() method

1
  • thanks for your answer. it worked like a charm brother..
    – Biswa
    Nov 9, 2018 at 9:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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