I'm trying to create a large number of templates and fields using the SDK. I'm able to create a basic template and field, but I can't seem to figure out how to make a field required on a certain template. Does anybody have a code sample they can share that shows how to do this? Is it possible to do it as part of the template and field creation process? Here's the code I'm using (basically the block from the tutorial) and while it doesn't throw an error on the NewField.Required line, the field doesn't get the required flag either generally for that specific field.
LFTemplate NewTemp = new LFTemplate(); NewTemp.Create(LfDB, "Test", true); LFTemplateField NewField = new LFTemplateField(); NewField.Create(LfDB, "Product Number", Field_Type.FIELD_TYPE_STRING, false); NewField.Required = true; NewTemp.AddTemplateField(1, NewField); NewTemp.Update();