0

How would I make a task-form field (SP2013) read-only (not hidden) using SharePoint Designer?

  • did you find anything new here? – Patrick Jan 13 '16 at 7:16
  • I've been working on it the last couple days. Actually, the first link you provided seemed to be the most helpful. I have successfully changed the fields I need to read only, now am only struggling with hiding the 'content type' at the top of the task form. Something about finding and hiding specific text in an h3 header? – RJaxx Jan 13 '16 at 14:50
  • Well, to hide something the best approach might be css. But I can not help you there. Still a SharePoint beginner. Maybe here some inspiration sharepoint.stackexchange.com/questions/140634/… – Patrick Jan 13 '16 at 14:55
1

I try to give you a guideline here (Pictures are in German, but the essential part is good to understand I guess):

I will show you how to set the priority field as read only. Here the default view:

enter image description here

  1. Open your list in SharePoint Designer

enter image description here

  1. Create a new form

enter image description here

  1. I created a new form for new entries / items / tasks (be sure to give it a new name "CustomNewForm", set it as a "newForm" and set it as default)

enter image description here

  1. Open the newly created form in advanced mode. (just right click onto the form and then ... advanced mode)

enter image description here

  1. Now look for you field (in this case "Priority") and here the important part is the ControlMode. This is set to "new" (because of the newForm).

enter image description here

  1. Change those two values from "New" to "Display" and save the form.

enter image description here

  1. After that, if you create a new entry / item / task in your list, the priority field should be read only.

enter image description here

Hope this helps. If so, please give it a vote up or mark it as answer if it fits perfectly for you.

  • Thanks for your answer Patrick. I'm not quite seeing the same lines of code though (or any referencing form field at all). The only line containing the control mode is the following, ControlMode xmlns="schemas.microsoft.com/WebPart/v2 – RJaxx Jan 5 '16 at 15:09
  • Could this be because I am editing the 'Edit' form? – RJaxx Jan 5 '16 at 15:29
  • Please check in the answer above Step 2 & 3. You have to create a new form. Otherwise you wont have the field as in the answer. – Patrick Jan 5 '16 at 16:27
  • I see. But is there a way to use the existing editform? I have created content types to manage the forms and am applying via workflow. Maybe jslink on the web part somehow? – RJaxx Jan 5 '16 at 23:05
  • didn't test it, but maybe you can try this: code.msdn.microsoft.com/office/… or give this a chance: learningsharepoint.com/2013/06/24/… – Patrick Jan 7 '16 at 7:27

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.