AttachmentFormControlProperties Type
The Attachment control allows users to attach files to the SharePoint list item that the form is currently adding or editing. For list forms it is the list item of the form. For task forms it will be the attachments for the task list item, not the list item the workflow is running on.
This topic describes the syntax of the FormControlProperty complex element with the type attribute of AttachmentFormControlProperties.
Syntax
<d2p1:FormControlProperties xmlns:d2p1="http://schemas.datacontract.org/2004/07/Nintex.Forms.SharePoint.FormControls" i:type="d2p1:AttachmentFormControlProperties">
<d2p1:Border />
<d2p1:BorderColor>String</d2p1:BorderColor>
<d2p1:BorderStyle>String</d2p1:BorderStyle>
<d2p1:BorderWidth>Integer</d2p1:BorderWidth>
<d2p1:CanResizeAtRuntime>Boolean</d2p1:CanResizeAtRuntime>
<d2p1:ControlVersion>String</d2p1:ControlVersion>
<d2p1:CssClass>String</d2p1:CssClass>
<d2p1:DisplayName>String</d2p1:DisplayName>
<d2p1:FormControlTypeUniqueId>String</d2p1:FormControlTypeUniqueId>
<d2p1:FormType>String</d2p1:FormType>
<d2p1:InRepeater>Boolean</d2p1:InRepeater>
<d2p1:InsertReferences xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
<d2p1:InternalPropertyBag xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
<d2p1:IsDirty>Boolean</d2p1:IsDirty>
<d2p1:IsLocked>Boolean</d2p1:IsLocked>
<d2p1:IsVisible>Boolean</d2p1:IsVisible>
<d2p1:PaddingWidth>Integer</d2p1:PaddingWidth>
<d2p1:TabIndex>Integer</d2p1:TabIndex>
<d2p1:UniqueId>String</d2p1:UniqueId>
<d2p1:VariableSource>String</d2p1:VariableSource>
<d2p1:VerticalAlign>String</d2p1:VerticalAlign>
<d2p1:BlockedFileExtenstions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<d2p1:DefaultControl>Boolean</d2p1:DefaultControl>
<d2p1:LocalAttachmentCollection xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<d2p1:MaximumAttachments>Integer</d2p1:MaximumAttachments>
<d2p1:MaximumAttachmentsMode>Unlimited</d2p1:MaximumAttachmentsMode>
<d2p1:MaximumFileSize>Integer</d2p1:MaximumFileSize>
<d2p1:MinimumAttachments>Integer</d2p1:MinimumAttachments>
<d2p1:MinimumAttachmentsErrorMessage i:nil="true" />
<d2p1:Name>String</d2p1:Name>
<d2p1:Whitelist xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<d2p1:WhitelistErrorMessage i:nil="true" />
</d2p1:FormControlProperties>
Element Characteristics
Characteristic | Description |
---|---|
Data type and length | String |
Default value | None |
Cardinality | 1..1: Required element that occurs only once. |
Element Attributes
Attribute | Description |
---|---|
Required |
Relationships
Relationship | Element |
---|---|
Parent element | Form/FormControls |
Child elements | See the child element table. |
Parent Element Namespace
Prefix | Namespace |
---|---|
d2p1 | http://schemas.datacontract.org/2004/07/Nintex.Forms.FormControls |
Parent Element
Attribute | Description |
---|---|
Required |
Child Elements
Name | Data Type | Default value | Cardinality | Description |
---|---|---|---|---|
Border | String | blank | 1..1 |
The line style. Values include: Bottom, Left, Right, and Top. |
BorderColor | String | #000000 | 1..1 |
The color of the line. |
BorderStyle | String | Solid | 1..1 |
The line style. Values include: Dashed, Dotted, Double, Groove, Inset, None, None, NotSet, Outset, Ridge, and Solid. For more information see the base enumeration documentation on MSDN. |
BorderWidth | Integer | 2 | 1..1 |
The width of the line in pixels. |
CanResizeAtRuntime | Boolean | true | 1..1 |
Indicates if the control can resize at run time. |
ControlVersion | String | 101.1.1.0 | 1..1 |
The version number of the control. |
CssClass | String | nf-form-input | 1..1 |
The CSS class. |
DisplayName | String | Attachments Control | 1..1 |
The display name. |
FormControlTypeUniqueId | String | GUID | 1..1 |
The form control type unique id. |
FormType | String | ListForm | 1..1 |
The type of the form. |
InRepeater | Boolean | false | 1..1 |
Value is true if in repeater; otherwise, false. |
InsertReferences | String | blank | 1..* |
The internal property bag. |
InternalPropertyBag | String | blank | 1..* |
True if the object is dirty; otherwise, false. The value indicating whether the control exists in any layout. If this flag is set then it is safe to delete the control from the list. |
IsDirty | Boolean | false | 1..1 |
True if the object is dirty; otherwise, false. The value indicating whether the control exists in any layout. If this flag is set then it is safe to delete the control from the list. |
IsLocked | Boolean | false | 1..1 |
True if this instance is locked; otherwise, false. |
IsVisible | Boolean | true | 1..1 |
True if this instance is visible; otherwise, false. |
PaddingWidth | Integer | 0 | 1..1 |
The width of the padding. |
TabIndex | Integer | 0 | 1..1 |
The index of the tab. |
UniqueId | String | GUID | 1..1 |
The unique id. For more information see "Guid Structure" on MSDN/ |
VariableSource | String | SharePoint | 1..1 |
The source. Values include: External, SharePoint, Unspecified, and Workflow. |
VerticalAlign | Integer | NotSet | 1..1 |
The width of the padding. Valid values include:
|
BlockedFileExtenstions |
List | blank | 1..* | The blocked file extensions. |
DefaultControl | Boolean | false | 1..1 |
True if default control; otherwise, false. |
LocalAttachmentCollection | List | blank | 1..1 | The attachment file name. |
MaximumAttachments | Integer | 100 | 1..1 | The maximum attachments allowed. |
MaximumAttachmentsMode | String | Unlimited | 1..1 | The types of Maximum attachment configuration for attachment control.Values include Custom and Unlimited. Custom value for maximum attachments. |
MaximumFileSize | Integer | 0 | 1..1 | The maximum size of the file. |
MinimumAttachments | Integer | 0 | 1..1 | The minimum attachments allowed. |
MinimumAttachmentsErrorMessage | String | blank | 1..1 | The minimum attachments error message. |
Name | String | Attachments | 1..1 |
The name of the control. |
Whitelist | List of Strings | blank | 1..* | The attachment white list. |
WhitelistErrorMessage | String | blank | 1..1 | The attachments white list error message. |
Example
The following example contains an example of the complex element.
<d2p1:FormControlProperties xmlns:d2p1="http://schemas.datacontract.org/2004/07/Nintex.Forms.SharePoint.FormControls" i:type="d2p1:AttachmentFormControlProperties">
<d2p1:Border />
<d2p1:BorderColor>#000000</d2p1:BorderColor>
<d2p1:BorderStyle>Solid</d2p1:BorderStyle>
<d2p1:BorderWidth>2</d2p1:BorderWidth>
<d2p1:CanResizeAtRuntime>true</d2p1:CanResizeAtRuntime>
<d2p1:ControlVersion>101.1.1.0</d2p1:ControlVersion>
<d2p1:CssClass>nf-form-input</d2p1:CssClass>
<d2p1:DisplayName>Attachments Control</d2p1:DisplayName>
<d2p1:FormControlTypeUniqueId>5f8b447a-4195-485b-9a04-477d7f24be73</d2p1:FormControlTypeUniqueId>
<d2p1:FormType>ListForm</d2p1:FormType>
<d2p1:InRepeater>false</d2p1:InRepeater>
<d2p1:InsertReferences xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
<d2p1:InternalPropertyBag xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
<d2p1:IsDirty>false</d2p1:IsDirty>
<d2p1:IsLocked>false</d2p1:IsLocked>
<d2p1:IsVisible>true</d2p1:IsVisible>
<d2p1:PaddingWidth>0</d2p1:PaddingWidth>
<d2p1:TabIndex>0</d2p1:TabIndex>
<d2p1:UniqueId>6bbce89f-fdab-4e50-a828-35537757c941</d2p1:UniqueId>
<d2p1:VariableSource>SharePoint</d2p1:VariableSource>
<d2p1:VerticalAlign>NotSet</d2p1:VerticalAlign>
<d2p1:BlockedFileExtenstions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<d2p1:DefaultControl>false</d2p1:DefaultControl>
<d2p1:LocalAttachmentCollection xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<d2p1:MaximumAttachments>100</d2p1:MaximumAttachments>
<d2p1:MaximumAttachmentsMode>Unlimited</d2p1:MaximumAttachmentsMode>
<d2p1:MaximumFileSize>0</d2p1:MaximumFileSize>
<d2p1:MinimumAttachments>0</d2p1:MinimumAttachments>
<d2p1:MinimumAttachmentsErrorMessage i:nil="true" />
<d2p1:Name>Attachments</d2p1:Name>
<d2p1:Whitelist xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<d2p1:WhitelistErrorMessage i:nil="true" />
</d2p1:FormControlProperties>