I have a feature that does the following in the feature activation Code :
- Creates a new SiteColumn (Type=Text, Hidden=False and Required =True)
- Set the french version of the Name (using CurrentUICulture switching)
- Create a new ContentType
- Add the SiteColumn to the new Content Type
- Create a new list
- Attach the ContentType to the list
But that causes some unexpected behaviors.
Sometimes my Column in the list is Hidden=True, sometimes Required=False. It seems to be totally Random.
It seems related to the ContentType.FieldLinks.Add() since the values are wrong in the content type.
Anyone faced something like that before?
Thanks
Hidden="FALSE"
andRequired="TRUE"