I have a field named Title in a link list (it's one of the default fields), but try as I might, I cannot programatically add it to the default view, edit, and new forms.
- SharePoint Designer will probably not be an allowable approach. :(
Attempting to grab the views' ASPX reveals they stop short of defining which custom fields to display. I'm not surprised (there's probably some procedure to generate code to customize), but I'd rather avoid this if possible... I don't need anything too custom, just another field.
I tried the following code in C# (and an analog in PowerShell), but wasn't successful here either.
SPField title = linkList.Fields["Title"]; title.ShowInDisplayForm = true; title.ShowInEditForm = true; title.ShowInNewForm = true; title.ShowInViewForms = true; title.Update();
tl;dr how do I add an existing field to a form?