I will show you here how to set the priority field as read-only in your form. Pictures are in German, but in english there isn’t a huge difference.
Everything will be done in just 6 steps!
Here is the default view of an task list form without the read-only field:
- Open your list in SharePoint Designer. The fastest way is like in the following picture.
2. Create a new form.
3. I created a new form for new entries / items / tasks (be sure to give it a new name e.g. “CustomNewForm”, set it as a “newForm” and set it as default)
4. Open the newly created form in advanced mode. (just right click onto the form and then … advanced mode)
5. Now look for you field (in this case “Priority”) and the important part here is the ControlMode. This is set to “new” (because of the newForm).
6. Change those two values from “New” to “Display” and save the form.
After that, if you create a new entry / item / task in your list, the priority field should be read-only.
And that is all you have to do. Of course you can do this with every other field. It depends only on the ControlMode of each column.
This is kind of a extension to my previous blog post. If you don’t understand everything maybe you can take a look into that.
2 responses to “Read-Only field in forms 6 steps (en)”
Hello,
I have tested this with success. How can i do the same in a Edit Form? I have two fields that should be read only
Thanks!
Nuno
Hi Nuno, it’s been a long time working working with SP2013, but you can try creating a new form and instead of setting it as “newForm” try the edit form. Hope this could help. I also have a similar post on my blog, maybe that will also help https://afrait.com/blog/custom-new-edit-or-display-form-in-4-steps-en/ – Best, Patrick