ListFields.Add Method
SharePoint Designer Developer Reference |
Adds a new ListField object to the ListFields collection.
Syntax
expression.Add(Name, Description, FieldType, Required, DefaultValue)
expression Required. A variable that represents a ListFields collection.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Name | Required | String | Specifies the name of the field. |
Description | Optional | String | Specifies a description of the field. |
DefaultValue | Optional | Variant | Specifies the default value. |
FieldType | Optional | FieldType | Specifies the type of the new field. |
Required | Optional | Boolean | Specifies whether the field is a required field. True if the field is required. |
Return Value
ListField
See Also