mnatan.brito
mnatan.brito

Reputation: 883

Same field with different settings on different content types

I need your help. My situation is as follows: My team is developing a sharepoint solution for a customer. We've already developed the branding, webparts and controls necessary to deploy. But we've come to a point that we need to automate column, content type and list creation. In this context, we have the following scenario:

We have a field 'Field A' that is used in content types 'Content Type A', 'Content Type B', 'Content Type C'. All three content types are used in a list 'List A'. But the question is: How can i have three different settings for the same field in the three diferent content types. Like: In 'Content Type A' the field 'Field A' is required. In 'Content Type B' the field 'Field A' is optional. and so on.

Upvotes: 0

Views: 163

Answers (1)

Peterson
Peterson

Reputation: 301

You can define that through the SharePoint UI. Once you have applied your content type to the target list, just navigate to list settings then scroll down to the content types list, clicking on one of them will redirect you to the fields used by the content type on this list, from this point on, any changes that you make to your columns you be applied only in this scope.

The key point here is, once you have applied your content type to your list, any modifications made acessing the content type through the list settings (this point is important), will be set only in this context.

Upvotes: 1

Related Questions