1

I have a column called "Comments", i have hide this column to appear in New form.

But i want to make this column appear on edit form so i can see the related comments of the approvers and the "Comments" column should be read only.

Is it possible to only display it on Edit form and make it read only?

The type of the list is: Classic Experience.

Thank you!

16
  • 1
    If you are using classic experience then you can hide this field from new form using javascript/jquery. Nov 20, 2019 at 11:20
  • Hi @GaneshSanap, do you have the JavaScript code to achieve this and make the column read only in the edit form ?
    – SmithBZ
    Nov 20, 2019 at 13:00
  • Check my answers given here and here. Nov 20, 2019 at 13:03
  • 1
    Thanks. I'll check them out and reply back asap.
    – SmithBZ
    Nov 20, 2019 at 13:19
  • 1
    Also you can download the SPService file from the URL mentioned in code, upload it to you SharePoint site maybe in Site Assets/Style Library and then refer it in your code. This files are not loading because we are referencing it from CDN. Nov 21, 2019 at 9:12

2 Answers 2

1

You could deploy react-script-editor to your tenant so you could use it in communication site(modern and classic view, it's helpful for customizing modern site page also).

Demo:

OOB List definition.

enter image description here

Add the webpart into new form or display form.

enter image description here

Add script to hide the column.

enter image description here

<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.js"></script>
    <script type="text/javascript">
        $(function () {
            $('nobr:contains("AnotherField")').closest('tr').hide();
        })
    </script>

Result:

enter image description here

1
  • Hi, thank you for this helpful information i will check this out and reply back asap.
    – SmithBZ
    Nov 21, 2019 at 8:33
0

The only way i know:

  1. Site setting
  2. Advanced Setting
  3. Allow content type
  4. then click on your "item" content type
  5. Click on the column "Comments"
  6. you will find three options, choose the "hidden" option (but it will just hide the column in the new & edit form, not to the view form)
2
  • Hi, i did the same steps but i didn't achieve my needs to show the column on edit form and make it as read only.
    – SmithBZ
    Nov 20, 2019 at 11:06
  • You can do it with PowerApps, but it needs a licence if you are going to share this form with guest users Nov 20, 2019 at 14:07

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.