we created programmatically a contenttype for a documentset. In this contenttype are some other contenttypes for documents whic hare only allowed in the documentset-contenttyp. The documentset-contenttype uses some sitecolumns and for the other contenttypes there are sitecolumns too.
When adding the documentset-contenttype to a document library all site columns are activated for all other content types and the list of fields in the forms show all used sitecolumns.
Can we somehow just show the fields for the specific contenttype?
[Update] Ok for example I've got a content type with parent document set named A. I've got two content types based on content type document which I'll name B and C.
In Content Type A I've got all site columns referenced I need. There are also all site columns I'll use in B and C.
B uses a subset of sitecolumns from A. C too. When uploading a new document and attaching the content type B to it all fields in A are shown in the Editform.
[Update 2] This only appears on most of our dev-machine. One devsystem doens't have this effect.