I created in SharePoint online an Issue library. The Enduser will fill out the form. But if the Enduser want to add an comment he has to edit the issue. In this edit-form I want greyed out all other field. Is this possible?


Do the following steps if you are using OOTB edit form, else you can still use the script, but you need to modify the selectors.

  1. Open the Issue Tracking Edit form.
  2. From Gear Icon, click on Edit Page.
  3. Add a Script Editor Web part to the page. (From Group select Media and Content).
  4. Put the below script in script editor form.

    function disableColumns(){
        $('input, select, textarea', '.ms-formbody').prop('disable', true).css('background-color', '#ccc');
        $('textarea[title="Comments"', '.ms-formbody').removeProp('disable').css('background-color', '#ccc');



Thats it. You are done here. When user will edit form it will like like this.

enter image description here

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.