ButtonFormControlProperties Type
The Button control can be used to initiate an action, such as submitting a form or initiating a custom JavaScript.
This topic describes the syntax of the FormControlProperty complex element with the type attribute of ButtonFormControlProperties.
Syntax
<d2p1:FormControlProperties i:type="d2p1:ButtonFormControlProperties">
<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 i:nil="true" />
<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:BackgroundColor i:nil="true" />
<d2p1:Bold>Boolean</d2p1:Bold>
<d2p1:FontColor i:nil="true" />
<d2p1:FontFamily i:nil="true" />
<d2p1:FontFamilyItemId i:nil="true" />
<d2p1:FontSize i:nil="true" />
<d2p1:FontSizeItemId i:nil="true" />
<d2p1:HorizontalAlignment>String</d2p1:HorizontalAlignment>
<d2p1:Italics>Boolean</d2p1:Italics>
<d2p1:StrikeThrough>Boolean</d2p1:StrikeThrough>
<d2p1:ThemeClass i:nil="true" />
<d2p1:Underline>Boolean</d2p1:Underline>
<d2p1:ButtonCommand>String</d2p1:ButtonCommand>
<d2p1:ButtonType>String</d2p1:ButtonType>
<d2p1:CausesValidation>Boolean</d2p1:CausesValidation>
<d2p1:ClientClick i:nil="true" />
<d2p1:ConfirmationMessage i:nil="true" />
<d2p1:DataField i:nil="true" />
<d2p1:DataFieldValue i:nil="true" />
<d2p1:DataFieldValueType>String</d2p1:DataFieldValueType>
<d2p1:EnabledWhenReadOnly>Boolean</d2p1:EnabledWhenReadOnly>
<d2p1:HorizontalWidth>String</d2p1:HorizontalWidth>
<d2p1:ImageAlign>String</d2p1:ImageAlign>
<d2p1:ImageUrl i:nil="true" />
<d2p1:Name i:nil="true" />
<d2p1:ReadOnlyText i:nil="true" />
<d2p1:RibbonButtonGroupName i:nil="true" />
<d2p1:RibbonButtonSequence>Integer</d2p1:RibbonButtonSequence>
<d2p1:RibbonIconUrl i:nil="true" />
<d2p1:ShowOnRibbon>Boolean</d2p1:ShowOnRibbon>
<d2p1:Text i:nil="true" />
<d2p1:VerticalHeight>String</d2p1:VerticalHeight>
<d2p1:VisibleWhenReadOnly>Boolean</d2p1:VisibleWhenReadOnly>
</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 |
---|---|---|---|---|
BackgroundColor | String | blank | 1..1 |
The color of the background. |
Bold | Boolean | false | 1..1 |
True if bold; otherwise, false. |
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. |
ButtonCommand | String | SaveAndSubmit | 1..1 |
The button command. Valid values include:
|
ButtonType | String | Button | 1..1 |
The type of the button. Valid values include:
|
CanResizeAtRuntime | Boolean | false | 1..1 |
Indicates if the control can resize at run time. |
CausesValidation | Boolean | true | 1..1 | True if causes validation; otherwise, false. |
ClientClick | String | blank | 1..1 | The client click. |
ConfirmationMessage | String | blank | 1..1 | The data field value. |
ControlVersion | String | 101.1.1.0 | 1..1 |
The version number of the control. |
CssClass | String | blank | 1..1 |
The CSS class. |
DataField | String | blank | 1..1 |
The binding path field name. |
DataFieldValue | String | blank | 1..1 | |
DataFieldValueType | String | String | 1..1 | The data field value. |
DisplayName | String | Save and Submit | 1..1 |
The display name. |
EnabledWhenReadOnly | Boolean | false | 1..1 | True if enabled when read only; otherwise, false. |
FontColor | String | blank | 1..1 |
The color of the font. |
FontFamily | String | blank | 1..1 |
The font family. |
FontFamilyItemId |
String | blank | 1..1 |
The font family item id. |
FontSize | String | blank | 1..1 |
The size of the font. |
FontSizeItemId | String | blank | 1..1 |
The font size item id. |
FormControlTypeUniqueId | String | GUID | 1..1 |
The form control type unique id. |
FormType | String | ListForm | 1..1 |
The type of the form. |
HorizontalAlignment | String | NotSet | 1..1 |
The horizontal alignment. Values include: Center, Justify, Left, NotSet, and Right. For more information, see "Horizontal Enumeration" in MSDN. |
HorizontalWidth | String | 100% | 1..1 | The width of the horizontal. |
ImageAlign | String | NotSet | 1..1 |
The image align. Valid values include:
|
ImageUrl | String | blank | 1..1 | The image URL. |
InRepeater | Boolean | false | 1..1 |
Value is true if in repeater; otherwise, false. |
InsertReferences | String | blank | 1..1 |
The insert references. |
InternalPropertyBag | String | blank | 1..1 |
The internal property bag. |
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. |
Italics | Boolean | false | 1..1 |
True if italics; otherwise, false. |
Name | String | blank | 1..1 |
The name of the control. |
PaddingWidth | Integer | 0 | 1..1 |
The width of the padding. |
ReadOnlyText | String | blank | 1..1 | The read only text. |
RibbonButtonGroupName | String | blank | 1..1 | The name of the ribbon button group. |
RibbonButtonSequence | Integer | 10 | 1..1 | The ribbon button sequence. |
RibbonIconUrl | String | blank | 1..1 | The ribbon icon URL. |
ShowOnRibbon | Boolean | true | 1..1 | True if to show on ribbon; otherwise, false. |
StrikeThrough | Boolean | false | 1..1 |
True if [strike through]; otherwise, false. |
TabIndex | String | blank | 1..1 |
The index of the tab. |
Text | String | blank | 1..1 |
The text for the control. |
ThemeClass | String | blank | 1..1 |
The theme class. |
Underline | Boolean | false | 1..1 |
True if use custom validation; otherwise, false. |
UniqueId | String | blank | 1..1 |
The unique id. For more information see "Guid Structure" on MSDN/ |
VariableSource | String | blank | 1..1 |
The source. Values include: External, SharePoint, Unspecified, and Workflow. |
VerticalAlign | String | blank | 1..1 |
The width of the padding. Valid values include:
|
VerticalHeight | String | 100% | 1..1 | The height of the vertical. |
VisibleWhenReadOnly | Boolean | false | 1..1 | True if visible when read only; otherwise, false. |
Example
The following example contains an example of the complex element.
<d2p1:FormControlProperties i:type="d2p1:ButtonFormControlProperties">
<d2p1:Border />
<d2p1:BorderColor>#000000</d2p1:BorderColor>
<d2p1:BorderStyle>Solid</d2p1:BorderStyle>
<d2p1:BorderWidth>2</d2p1:BorderWidth>
<d2p1:CanResizeAtRuntime>false</d2p1:CanResizeAtRuntime>
<d2p1:ControlVersion>101.1.1.0</d2p1:ControlVersion>
<d2p1:CssClass i:nil="true" />
<d2p1:DisplayName>Save and Submit</d2p1:DisplayName>
<d2p1:FormControlTypeUniqueId>c0a89c70-0781-4bd4-8623-f73675005e09</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>f63aa09c-4148-432e-860a-724de7917812</d2p1:UniqueId>
<d2p1:VariableSource>Unspecified</d2p1:VariableSource>
<d2p1:VerticalAlign>NotSet</d2p1:VerticalAlign>
<d2p1:BackgroundColor i:nil="true" />
<d2p1:Bold>false</d2p1:Bold>
<d2p1:FontColor i:nil="true" />
<d2p1:FontFamily i:nil="true" />
<d2p1:FontFamilyItemId i:nil="true" />
<d2p1:FontSize i:nil="true" />
<d2p1:FontSizeItemId i:nil="true" />
<d2p1:HorizontalAlignment>NotSet</d2p1:HorizontalAlignment>
<d2p1:Italics>false</d2p1:Italics>
<d2p1:StrikeThrough>false</d2p1:StrikeThrough>
<d2p1:ThemeClass i:nil="true" />
<d2p1:Underline>false</d2p1:Underline>
<d2p1:ButtonCommand>SaveAndSubmit</d2p1:ButtonCommand>
<d2p1:ButtonType>Button</d2p1:ButtonType>
<d2p1:CausesValidation>true</d2p1:CausesValidation>
<d2p1:ClientClick i:nil="true" />
<d2p1:ConfirmationMessage i:nil="true" />
<d2p1:DataField i:nil="true" />
<d2p1:DataFieldValue i:nil="true" />
<d2p1:DataFieldValueType>String</d2p1:DataFieldValueType>
<d2p1:EnabledWhenReadOnly>false</d2p1:EnabledWhenReadOnly>
<d2p1:HorizontalWidth>100%</d2p1:HorizontalWidth>
<d2p1:ImageAlign>NotSet</d2p1:ImageAlign>
<d2p1:ImageUrl i:nil="true" />
<d2p1:Name i:nil="true" />
<d2p1:ReadOnlyText i:nil="true" />
<d2p1:RibbonButtonGroupName i:nil="true" />
<d2p1:RibbonButtonSequence>10</d2p1:RibbonButtonSequence>
<d2p1:RibbonIconUrl i:nil="true" />
<d2p1:ShowOnRibbon>true</d2p1:ShowOnRibbon>
<d2p1:Text i:nil="true" />
<d2p1:VerticalHeight>100%</d2p1:VerticalHeight>
<d2p1:VisibleWhenReadOnly>false</d2p1:VisibleWhenReadOnly>
</d2p1:FormControlProperties>