Tag Info

Hot answers tagged

2

If you do a .remove() instead of a .hide() the fields could (although I haven't seen it to be the case) get blanked out. You would likely see some sort of post back error in that the HTML delivered is different than what was sent, I saw this a lot when trying to modify dropdown lists. If you hide the rows with a .hide(), the fields are still present in the ...


2

If your list/library has multiple content types associated with it, the drop down will appear. If there are other content types that are not being used, remove them from the list and they'll go away. Otherwise, you'll need some script or css to remove/hide it.


1

You can do it using below code SPList list = currentWeb.Lists.TryGetList("ListName"); if (list != null) { SPContentType itemCT = list.ContentTypes["CTName"]; if (itemCT != null) { list.ContentTypes.Delete(itemCT.Id); list.Update(); } }


1

To get custom list templates, use following script: $site = Get-SPSite <YOURSITE> $web = $site.AllWebs[0] $listTemplates = $site.GetCustomListTemplates($web)


1

The code is getting the content type from the root site collection and adding it to a List named "Shared Documents", in root site. Moreover, it is looking for the same named list in all sub sites. If it finds one, it is adding the content type to the list. If your requirement is to add the content type to a particular list in a single sub site, you can ...


1

The columns defined as unique (so the BDC identity was built on that colums) were not unique in the sql view, that why I had not unique BDCIdentity.


1

I'm going to bump this - agreed with the original poster... in as much as I need to have a way for the newform.aspx to tell the user WHICH content type they are inputting. In my case, I have a big announcements list with events, announcements, marketplace, departmental, and organization-wide announcements. They all have different fields. But perhaps they ...



Only top voted, non community-wiki answers of a minimum length are eligible