# Structure, Sections & Fields

## Structure

<div align="left"><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-DX1_2UtD_gYZM%2Fform-structure.png?generation=1540843314235327&#x26;alt=media" alt=""></div>

### Header

* The header contains a title, a label, and an optional image.<br>
* The title can be used to display the process name. Its text can be edited directly in the form.<br>
* The label is used to display the current request number. Its default identifier is `CURRENT_REQUEST` and can be referenced in an action parameter to receive the `Request.Id` macro.<br>
* The image is used to display a logo. It can be resized or realigned.<br>
* A fixed width and height can be set for the header in the form configuration window.

### Section

* The section has a title to display the section name. Its text can be edited directly on the form.<br>
* It can have one or several fields.<br>
* Each section must have a unique identifier.<br>
* Sections can only be aligned vertically and reordered using the mouse drag-and-drop action.<br>
* When inserting a section tool into the form, the new section will be placed in the last position.<br>
* Section width will be resized automatically based on the widest field in the form whenever there is a field width change.<br>
* A fixed width can be set for all sections.<br>
* The section’s settings can be edited by clicking the pencil icon on the right side of the section name.

See [Tools](#tools) for the different types of default section.

### Field

* The field has a label and an input control.<br>
* The label is used to display the name of the field. Its text can be edited directly on the form. It can be resized and realigned.<br>
* A fixed width can be set for all labels (**General / Labels**).<br>
* The input control is where a value is captured in the form. It can be resized and realigned.<br>
* Each field must have a unique identifier.<br>
* Fields within the same section are prefixed with the section’s identifier following an underscore character.<br>
* Fields within a section can be reordered vertically using the mouse drag-and-drop action.<br>
* A field can be moved from one section to another section using the mouse drag-and-drop action.<br>
* When inserting a field tool into the form, the new field will be placed in the last position of the selected section or the first section if no section is selected.<br>
* By default, fields are aligned vertically on the same column.<br>
* Two fields can be aligned horizontally on the same row using the **Remove line break** button (**left arrow**) on the right side of the first field.<br>
* Two fields can be aligned vertically on the same column using the **Line break** button (**right arrow**) on the right side of the first field.<br>
* The field’s settings can be edited edited by clicking the pencil icon on the right side of the field.

See [Tools](#tools) for the different types of default field.

### Button

* The **Submit** and **Save as draft** buttons can be renamed in the form configuration window (**General / Buttons**) or in the **Appearance Editor** (see [Appearance Editor](https://docs.workflowgen.com/admin/7.22/form-appearance-and-management#appearance-editor)).<br>
* The **Save as draft** button can be enabled or disabled as well.<br>
* Their identifiers are `submitButton` and `saveAsDraftButton`, respectively.

### Footer

* The footer contains a title and an optional image.<br>
* The title can be used to display a note. Its text can be edited directly on the form.<br>
* The image is used to display a logo. It can be resized or realigned in the form configuration window (**General / Footer**) or in the **Appearance Editor** (see [Appearance Editor](https://docs.workflowgen.com/admin/7.22/form-appearance-and-management#appearance-editor)).<br>
* A fixed width and height can be set for the footer.

{% hint style="info" %}
You can also change the web form style sheet and other attributes (header image, footer, text, etc.) at runtime by adding the following .NET code to your form:

```csharp
protected void Page_Load(object sender, EventArgs e)
{
    base.Page_Load(sender, e);
    String stylePath=HttpContext.Current.Request.PhysicalApplicationPath.Replace("WfApps\\WebForms\\","App_Data\\Templates\\Forms\\En\\Default\\css");
    Page.Header.Controls.Remove(this.FindControl("StyleSheet"));
    Page.Header.Controls.Add(
        new LiteralControl(
            System.IO.File.ReadAllText(stylePath + "\\" + "metal.css")
        )
    );
    string imageUrl="http://mywebsite/mylogo.jpg"
    HeaderImage.Style["background-image"] = "url('" + imageUrl+ "')";
    HeaderTitleLabel.Text="My Title #";
    FooterTitleLabel.Text="My footer";
    imageUrl="http://mywebsite/myfooter.jpg";
    FooterImage.Style["background-image"] = "url('" + imageUrl+ "')";
}
```

This replaces:

* The current style sheet with the `metal.css` template<br>
* The header title label<br>
* The header image<br>
* The footer title label<br>
* The footer image
  {% endhint %}

{% hint style="info" %}
You should define the width and height of the images in the form configuration in the .NET code.

#### 📌 Example:

```
FooterImage.Style["width"] = "200px";
FooterImage.Style["height"] = "100px";
```

An absolute URL is recommended because the generated form archive (HTML) could be opened in the email notification.
{% endhint %}

## Sections & fields

### Tools

Default and custom tools are available in the **Tools** drop-down list.

| Name                    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Manage custom tools...  | Opens the **Manage custom tools** window                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Custom – sections       | <p>List of custom section templates<br><br>A custom section template can be created by using the <strong>Save a section or field as tool</strong> feature or by manually deploying it on the server with the following folder and file structures: <code>\wfgen\App\_Data\Templates\Forms\[language]\[folder name]\sections\[section name].txt</code><br>📌 <strong>Example:</strong>  <code>\wfgen\App\_Data\Templates\Forms\En\MyCompany\sections\MySection.txt</code><br><br>✏️ <strong>Note:</strong> A custom section template must comply with the content structures and rules used and known by the form designer. This is aimed at advanced users.</p> |
| Custom – field          | <p>List of custom field templates</p><p></p><p>A custom field template can be created by using the <strong>Save a section or field as tool</strong> feature or by manually deploying it on the server with the following folder and file structures: <code>\wfgen\App\_Data\Templates\Forms\[language]\[folder name]\fields\[field name].txt</code><br>📌 <strong>Example:</strong> <code>\wfgen\App\_Data\Templates\Forms\En\MyCompany\fields\MyField.txt</code><br><br>✏️ <strong>Note:</strong> A custom field template must comply with the content structures and rules used and known by the form designer. This is intended for advanced users.</p>      |
| **Default sections**    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Approval                | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-HiG-nGkiPLSqY%2Fapproval_247x165.png?generation=1540843309647334&#x26;alt=media" alt=""></p><p>A section that contains first name, last name, and date fields in read-only, plus an approval radio button list and comment multiline textbox</p>                                                                                                                                                                                                                                                             |
| Empty                   | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-J4-CqswxHiWeb%2Fempty_247x44.png?generation=1540843310699581&#x26;alt=media" alt=""></p><p>A section that has no fields</p>                                                                                                                                                                                                                                                                                                                                                                                  |
| Request                 | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-LH2RiX4DQpoKf%2Frequest_247x184.png?generation=1540843313413064&#x26;alt=media" alt=""></p><p>A section that contains first name, last name, and date fields in read-only, plus a category drop-down list, subject textbox, and description multiline textbox</p>                                                                                                                                                                                                                                            |
| Standard                | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-N2lCjyy801Nhw%2Fstandard_247x104.png?generation=1540843316006173&#x26;alt=media" alt=""></p><p>A section that contains first name, last name, and date fields in read-only</p>                                                                                                                                                                                                                                                                                                                               |
| **Default fields**      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Attachment              | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-PylfVKdb9Mnue%2Fattachment.png?generation=1540843309691124&#x26;alt=media" alt=""></p><p>Attach one file</p>                                                                                                                                                                                                                                                                                                                                                                                                 |
| CheckBox                | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-RxiKnD3ijqBOC%2Fcheckbox.png?generation=1540843312220667&#x26;alt=media" alt=""></p><p>Single checkbox</p>                                                                                                                                                                                                                                                                                                                                                                                                   |
| CheckBoxList            | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-TxM6ZS1DhQ7Jq%2Fcheckboxlist.png?generation=1540843311552020&#x26;alt=media" alt=""></p><p>Multiple checkboxes in horizontal alignment</p>                                                                                                                                                                                                                                                                                                                                                                   |
| CheckBoxListVertical    | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-VXdmvzT5yXG2z%2Fcheckboxlist_vertical.png?generation=1540843309708064&#x26;alt=media" alt=""></p><p>Multiple checkboxes in vertical alignment</p>                                                                                                                                                                                                                                                                                                                                                            |
| Currency                | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-XINB9BHPvU0ug%2Fcurrency.png?generation=1540843309631505&#x26;alt=media" alt=""></p><p>Input for currency value</p>                                                                                                                                                                                                                                                                                                                                                                                          |
| Date                    | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-ZxgebbNto7sXB%2Fdate.png?generation=1540843317014880&#x26;alt=media" alt=""></p><p>Input for date value</p>                                                                                                                                                                                                                                                                                                                                                                                                  |
| DateTime                | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-aLJbc2xGAimRi%2Fdatetime.png?generation=1540843309324776&#x26;alt=media" alt=""></p><p>Input for date time value</p>                                                                                                                                                                                                                                                                                                                                                                                         |
| DropDownListBox         | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-c5Q6w4kDQu1IF%2Fdropdownlistbox.png?generation=1540843311651861&#x26;alt=media" alt=""></p><p>List of items for a single choice selection</p>                                                                                                                                                                                                                                                                                                                                                                |
| GridView                | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-epIEB42sjl6B5%2Fgridview_247x35.png?generation=1540843317992952&#x26;alt=media" alt=""></p><p>Dynamic table of multiple input fields; each column represents a field and each row represents a record</p>                                                                                                                                                                                                                                                                                                    |
| Label                   | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-gX6byhPnSpQH5%2Flabel.png?generation=1540843309698582&#x26;alt=media" alt=""></p><p>Text displayed in read-only</p>                                                                                                                                                                                                                                                                                                                                                                                          |
| ListBox                 | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-i2wcuErI_AcmA%2Flistbox.png?generation=1540843315013348&#x26;alt=media" alt=""></p><p>List of items for a multiple choice selection</p>                                                                                                                                                                                                                                                                                                                                                                      |
| Numeric                 | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-ksnTmagHZGA-K%2Fnumeric.png?generation=1540843312143802&#x26;alt=media" alt=""></p><p>Input for numeric value</p>                                                                                                                                                                                                                                                                                                                                                                                            |
| Password                | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-m2R8m2y2uqjRm%2Fpassword.png?generation=1540843311478480&#x26;alt=media" alt=""></p><p>Input for password value (the entered text will be masked)</p>                                                                                                                                                                                                                                                                                                                                                        |
| RadioButton             | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-oSAIUIgELZytz%2Fradiobutton.png?generation=1540843312775715&#x26;alt=media" alt=""></p><p>Single radio button</p>                                                                                                                                                                                                                                                                                                                                                                                            |
| RadioButtonList         | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-qnjcCjoWtCLbd%2Fradiobuttonlist.png?generation=1540843310725009&#x26;alt=media" alt=""></p><p>Multiple radio buttons in horizontal alignment</p>                                                                                                                                                                                                                                                                                                                                                             |
| RadioButtonListVertical | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-s2r5RSKJ1gA5q%2Fradiobuttonlist_vertical.png?generation=1540843319019398&#x26;alt=media" alt=""></p><p>Multiple radio buttons in vertical alignment</p>                                                                                                                                                                                                                                                                                                                                                      |
| ReadOnlyCurrency        | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-uR66Dioqz1mry%2Freadonly_currency.png?generation=1540843319005897&#x26;alt=media" alt=""></p><p>Read-only currency value</p>                                                                                                                                                                                                                                                                                                                                                                                 |
| ReadOnlyDate            | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-wLb3aYT4gQbbp%2Freadonly_date.png?generation=1540843312019155&#x26;alt=media" alt=""></p><p>Read-only date value</p>                                                                                                                                                                                                                                                                                                                                                                                         |
| ReadOnlyDateTime        | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P3-yHcLBgOygWVhB%2Freadonly_datetime.png?generation=1540843313028522&#x26;alt=media" alt=""></p><p>Read-only date time value</p>                                                                                                                                                                                                                                                                                                                                                                                |
| ReadOnlyNumeric         | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30-FL27KkzTpzSt%2Freadonly_numeric.png?generation=1540843310207877&#x26;alt=media" alt=""></p><p>Read-only numeric value</p>                                                                                                                                                                                                                                                                                                                                                                                   |
| ReadOnlyText            | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P301MWXUxTqbNqED%2Freadonly_text.png?generation=1540843310922564&#x26;alt=media" alt=""></p><p>Read-only text value</p>                                                                                                                                                                                                                                                                                                                                                                                         |
| TextArea                | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30305IlXk6vWBMC%2Ftextarea.png?generation=1540843311012590&#x26;alt=media" alt=""></p><p>Multiline textbox</p>                                                                                                                                                                                                                                                                                                                                                                                                 |
| TextBox                 | <p><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P305w6lOCpNPRPek%2Ftextbox.png?generation=1540843310307498&#x26;alt=media" alt=""></p><p>Single line textbox</p>                                                                                                                                                                                                                                                                                                                                                                                                |

### Save a section or field as tool

This feature allows a form designer to save an existing section or field in the current form as a custom tool template in order to be reused in other forms. First, select a section or field then click the **Save a section or field as tool** icon on the toolbar (see [Toolbar](https://docs.workflowgen.com/admin/7.22/form/..#toolbar)).

<div align="left"><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P307mw6Jn1tCgv9w%2Fsave_as_tool.png?generation=1540843311025758&#x26;alt=media" alt=""></div>

| Field            | Description                                                   |
| ---------------- | ------------------------------------------------------------- |
| **Save as tool** |                                                               |
| Name             | Enter a unique name for the custom tool                       |
| Tools            | Select an existing tool in the drop-down list for replacement |

### Manage custom tools

To open this window, click the **Tools** drop-down menu and select **Manage custom tools**, which allows you to delete custom tools.

<div align="left"><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P309E0IK91sud2uK%2Fmanage_custom_tools_1_624x468.png?generation=1540843313459454&#x26;alt=media" alt=""></div>

<div align="left"><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30BFWGananWeVU5%2Fmanage_custom_tools_2_624x466.png?generation=1540843314207570&#x26;alt=media" alt=""></div>

| **Name / Icon**                                                                                                                                                                                                         | **Description**                        |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- |
| **Sections**                                                                                                                                                                                                            |                                        |
| Name                                                                                                                                                                                                                    | Name of the custom section tool        |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30es71YXLBI8ZHj%2Fdelete_icon_12x11.png?generation=1540843312791692\&alt=media) | Delete the current custom section tool |
| **Fields**                                                                                                                                                                                                              |                                        |
| Name                                                                                                                                                                                                                    | Name of the custom field tool          |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30es71YXLBI8ZHj%2Fdelete_icon_12x11.png?generation=1540843312791692\&alt=media) | Delete the current custom field tool   |

### Section settings

| Name / Icon                                                                                                                                                                                                                | Description                                                                                                                                                                                                                                                                                    |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30XurK33IvsiQld%2Fcheckmark_icon_12x10.png?generation=1540843309098576\&alt=media) | Close and apply the changes to the section                                                                                                                                                                                                                                                     |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30sy5bG4MhaXhn3%2Fclose_icon_12x11.png?generation=1540843313440602\&alt=media)     | Close and cancel the changes                                                                                                                                                                                                                                                                   |
| **Validation**                                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                |
| **Behavior**                                                                                                                                                                                                               | ✏️ **Note:** To simplify the capture of a condition, the form fields and operators are listed in the **Select a field...** and **Select an operator...** drop-down menus. You can also press **`Ctrl+Space`**&#x74;o display a drop-down menu that lists the available variables and keywords. |
| Required                                                                                                                                                                                                                   | Sets the section fields to be required                                                                                                                                                                                                                                                         |
| Condition                                                                                                                                                                                                                  | <p>The section fields are required based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code.</p><p>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                   |
| Read-only                                                                                                                                                                                                                  | Sets the section’s fields to read-only                                                                                                                                                                                                                                                         |
| Condition                                                                                                                                                                                                                  | <p>The section fields are read-only based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code.</p><p>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                  |
| Hidden                                                                                                                                                                                                                     | Sets the section fields to be hidden                                                                                                                                                                                                                                                           |
| Condition                                                                                                                                                                                                                  | <p>The section fields are hidden based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code.</p><p>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                     |

### File attachment field settings

<div align="left"><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30Ly5xdhWU5F0Y8%2Ffile_attachment_field_settings.png?generation=1540843311432759&#x26;alt=media" alt=""></div>

| Name / Icon                                                                                                                                                                                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30XurK33IvsiQld%2Fcheckmark_icon_12x10.png?generation=1540843309098576\&alt=media) | Close and apply the changes to the field                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30sy5bG4MhaXhn3%2Fclose_icon_12x11.png?generation=1540843313440602\&alt=media)     | Close and cancel the changes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **General**                                                                                                                                                                                                                |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Enable advanced mode                                                                                                                                                                                                       | Enables the file attachment settings listed below                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Enable download link                                                                                                                                                                                                       | Check if you want to enable the link to open file                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Show file size                                                                                                                                                                                                             | Displays the size of the uploaded file beside the download link                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Upload file automatically                                                                                                                                                                                                  | Automatically uploads the file, otherwise an upload button will be displayed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Control style                                                                                                                                                                                                              | Display the Modify and Delete controls as links or buttons                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Image/PDF preview                                                                                                                                                                                                          | Display an image or PDF preview (thumbnail)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Position                                                                                                                                                                                                                   | Display the image preview above (Top) or below (Bottom) the attachment filename and controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Width / Height                                                                                                                                                                                                             | <p>Sets the width and/or height of the image preview in pixels</p><p></p><p>⚠️ <strong>Important:</strong> You should only set one of these values in order to preserve the aspect ratio of the original image as displayed in the preview; otherwise, the image will appear distorted.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Storage in form archive                                                                                                                                                                                                    | <ul><li><strong>Web address (URL):</strong> Stores the image in the form folder</li><li><strong>Embedded image:</strong> Embeds the image in the form archive HTML</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| File size limit (kB)                                                                                                                                                                                                       | Defines the maximum size of the uploaded file in kilobytes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Size restriction error message                                                                                                                                                                                             | Write error that will appear if file exceeds the file size limit                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Allowed extensions                                                                                                                                                                                                         | Restricts the allowed file types by extension, separated by commas (e.g. `txt,doc,html,xml,png`)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Forbidden extensions                                                                                                                                                                                                       | List of file extensions not allowed for links                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Extension restriction error message                                                                                                                                                                                        | Write error message that will be displayed when file extension error occurs                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Empty file error message                                                                                                                                                                                                   | Write error message that will display when there is no file to link to                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Add button label                                                                                                                                                                                                           | Display text for the add button                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Update button label                                                                                                                                                                                                        | Display text for update button                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Delete button label                                                                                                                                                                                                        | Display text for delete button                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Overwrite button label                                                                                                                                                                                                     | Allows you to choose a new file                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Cancel button label                                                                                                                                                                                                        | Allows you to cancel request for a new file                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Display mode                                                                                                                                                                                                               | <p>Sets the default display mode:</p><ul><li><strong>Display</strong>: the field is read-only</li><li><strong>Edit</strong>: the field can be edited</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Download link                                                                                                                                                                                                              | Check to display a link to download the uploaded file                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Validation**                                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **Behavior**                                                                                                                                                                                                               | ✏️ **Note:** To simplify the capture of a condition, the form fields and operators are listed in the **Select a field...** and **Select an operator...** drop-down menus. You can also press **`Ctrl+Space`**&#x74;o display a drop-down menu that lists the available variables and keywords.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Required                                                                                                                                                                                                                   | Sets the field to be required                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Condition                                                                                                                                                                                                                  | <p>The field is required based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code. To help with the capture of the condition, the list of form fields and a list of operators are displayed. </p><p>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Read-only                                                                                                                                                                                                                  | Sets the field to be read-only                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Condition                                                                                                                                                                                                                  | <p>The field is read-only based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code. To help with the capture of the condition, the list of form fields and a list of operators are displayed.</p><p>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Hidden                                                                                                                                                                                                                     | Sets the field to be hidden                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Condition                                                                                                                                                                                                                  | <p>The field is hidden based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code. To help with the capture of the condition, the list of form fields and a list of operators are displayed.</p><p>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **Custom attributes**                                                                                                                                                                                                      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Name                                                                                                                                                                                                                       | <p>Any name that is not in the list of standard reserved attribute names (<code>id</code>, <code>name</code>, <code>class</code>, <code>style</code>, <code>title</code>, <code>multiple</code>, <code>type</code>, <code>value</code>, <code>checked</code>, <code>runat</code>)</p><p></p><p>Additional reserved attribute names specific to <strong>File attachment / General</strong>: <code>accesskey</code>, <code>dir</code>, <code>lang</code>, <code>tabindex</code>, <code>xml:lang</code>, <code>onblur</code>, <code>onchange</code>, <code>onclick</code>, <code>onfocus</code>, <code>onmousedown</code>, <code>onmousemove</code>, <code>onmouseout</code>, <code>onmouseover</code>, <code>onmouseup</code>, <code>onkeydown</code>, <code>onkeypress</code>, <code>onkeyup</code>, <code>onselect</code>, <code>enabled</code>, <code>visible</code>, <code>ondatabinding</code>, <code>ondisposed</code>, <code>oninit</code>, <code>onload</code>, <code>onprerender</code>, <code>onunload</code></p><p></p><p>A list of examples of custom attributes is displayed at the beginning of the tab; you can choose one or enter a specific name.</p> |
| Value                                                                                                                                                                                                                      | Any value                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30wNYbZSeDTe2Kk%2Fadd_icon_12x12.png?generation=1540843309130847\&alt=media)       | Add a new attribute                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30es71YXLBI8ZHj%2Fdelete_icon_12x11.png?generation=1540843312791692\&alt=media)    | Remove the current attribute                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |

### CheckBox/RadioButton field settings <a href="#checkbox-radio-button-field-settings" id="checkbox-radio-button-field-settings"></a>

{% hint style="info" %}
These settings apply to CheckBoxList, CheckBoxListVertical, RadioButtonList and RadioButtonListVertical fields as well.
{% endhint %}

<div align="left"><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30VSjS0MNyfXCoP%2Fcheckbox_radiobutton_settings.png?generation=1540843312748003&#x26;alt=media" alt=""></div>

| **Name / Icon**                                                                                                                                                                                                            | **Description**                                                                                                                                                                                                                                                                                                                                                                         |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30XurK33IvsiQld%2Fcheckmark_icon_12x10.png?generation=1540843309098576\&alt=media) | Add a new checkbox/radio button                                                                                                                                                                                                                                                                                                                                                         |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30sy5bG4MhaXhn3%2Fclose_icon_12x11.png?generation=1540843313440602\&alt=media)     | Delete the current checkbox/radio button                                                                                                                                                                                                                                                                                                                                                |
| **Items**                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                                                                                                                                                         |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30u-s0xHkvhNSKh%2Fdragdrop_icon_12x15.png?generation=1540843311433973\&alt=media)  | Drag and drop to change the order of the items                                                                                                                                                                                                                                                                                                                                          |
| Checked                                                                                                                                                                                                                    | Check the default selected items in the field. The radio button field supports single selection whereas the checkbox field supports multiple selections.                                                                                                                                                                                                                                |
| Value                                                                                                                                                                                                                      | Value of the checkbox/radio button                                                                                                                                                                                                                                                                                                                                                      |
| Text                                                                                                                                                                                                                       | Display text of the checkbox/radio button                                                                                                                                                                                                                                                                                                                                               |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30wNYbZSeDTe2Kk%2Fadd_icon_12x12.png?generation=1540843309130847\&alt=media)       | Add a new checkbox/radio button                                                                                                                                                                                                                                                                                                                                                         |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30es71YXLBI8ZHj%2Fdelete_icon_12x11.png?generation=1540843312791692\&alt=media)    | Delete the current checkbox/radio button                                                                                                                                                                                                                                                                                                                                                |
| **Validation**                                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                                         |
| **Behavior**                                                                                                                                                                                                               | ✏️ **Note:** To simplify the capture of a condition, the form fields and operators are listed in the **Select a field…** and **Select an operator...** drop-down menus. You can also press **`Ctrl+Space`**&#x74;o display a drop-down menu that lists the available variables and keywords.                                                                                            |
| Required                                                                                                                                                                                                                   | Sets the field to be required                                                                                                                                                                                                                                                                                                                                                           |
| Condition                                                                                                                                                                                                                  | <p>The field is required based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code.<br>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p><p></p><p>✏️ <strong>Note:</strong> The checkbox fields (list or single) and single radio button are not supported by this behavior.</p> |
| Read-only                                                                                                                                                                                                                  | Sets the field to be read-only                                                                                                                                                                                                                                                                                                                                                          |
| Condition                                                                                                                                                                                                                  | <p>The field is required based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code.<br>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                                                                                                                         |
| Hidden                                                                                                                                                                                                                     | Sets the field to be hidden                                                                                                                                                                                                                                                                                                                                                             |
| Condition                                                                                                                                                                                                                  | <p>The field is required based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code.<br>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                                                                                                                         |
| **Custom attributes**                                                                                                                                                                                                      |                                                                                                                                                                                                                                                                                                                                                                                         |
| `aslist`                                                                                                                                                                                                                   | This property allows a radio button and checkbox field with one item to be converted as a list control (RadioButtonList / CheckBoxList) instead of a RadioButton / CheckBox control in the web form. Accepted Boolean values: `true` or `false`                                                                                                                                         |

### TextBox field settings

These settings apply to Currency, Date, DateTime, Numeric, Password, and TextArea fields.

<div align="left"><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30g7i5GXr2fWyuq%2Ftextbox_settings.png?generation=1540843309244102&#x26;alt=media" alt=""></div>

| **Name / Icon**                                                                                                                                                                                                            | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30XurK33IvsiQld%2Fcheckmark_icon_12x10.png?generation=1540843309098576\&alt=media) | Close and apply the changes to the field                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30sy5bG4MhaXhn3%2Fclose_icon_12x11.png?generation=1540843313440602\&alt=media)     | Close and cancel the changes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **Validation**                                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Behavior**                                                                                                                                                                                                               | ✏️ **Note:** To simplify the capture of a condition, the form fields and operators are listed in the **Select a field...** and **Select an operator...** drop-down menus. You can also press **`Ctrl+Space`**&#x74;o display a drop-down menu that lists the available variables and keywords.                                                                                                                                                                                                                                                                                  |
| Maximum length                                                                                                                                                                                                             | <p>The maximum number of characters that can be entered</p><p>✏️ <strong>Note:</strong> Not available for TextArea fields.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Required                                                                                                                                                                                                                   | Sets the field to be required                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Condition                                                                                                                                                                                                                  | <p>The field is required based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code. </p><p>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                                                                                                                                                                                                                                                                                                             |
| Read-only                                                                                                                                                                                                                  | Sets the field to be read-only                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Condition                                                                                                                                                                                                                  | <p>The field is read-only based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code. </p><p>📌 <strong>Example:</strong> <code>TextBox.Text == "Hello World"</code></p>                                                                                                                                                                                                                                                                                                                              |
| Hidden                                                                                                                                                                                                                     | Sets the field to be hidden                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Condition                                                                                                                                                                                                                  | <p>The field is hidden based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code. </p><p>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                                                                                                                                                                                                                                                                                                               |
| **Regular expression**                                                                                                                                                                                                     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Expression                                                                                                                                                                                                                 | <p>A regular expression to determine validity. </p><p>📌 <strong>Example:</strong> email address:  <code>\b\[A-Za-z0-9.\_%+-]+@\[A-Za-z0-9.-]+.\[A-Za-z]{2,4}\b</code></p><p></p><p>A regular expression can be entered freely into the designated area. It is also possible to use regular expressions in the <strong>Select a regular expression</strong> list.</p>                                                                                                                                                                                                           |
| Error message                                                                                                                                                                                                              | Message to display when the validated field is invalid                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Range                                                                                                                                                                                                                      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Minimum value                                                                                                                                                                                                              | Minimum value for the field being validated                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Maximum value                                                                                                                                                                                                              | Maximum value for the field being validated                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Error message                                                                                                                                                                                                              | Message to display when the validated field is invalid                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Custom                                                                                                                                                                                                                     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| OnServerValidate                                                                                                                                                                                                           | Server-side C# syntax validation code; must return a Boolean value (true or false)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Validate empty text                                                                                                                                                                                                        | Whether the validator validates the control when the text of the control is empty                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Error message                                                                                                                                                                                                              | Message to display when the validated field is invalid                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Compare**                                                                                                                                                                                                                |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Value to compare                                                                                                                                                                                                           | Value to compare against                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Control to compare                                                                                                                                                                                                         | Select another field in the current form to compare against                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Operator                                                                                                                                                                                                                   | <p>Comparison operation to apply to values:</p><ul><li>Equal (<code>=</code>)</li><li>Greater than (<code>></code>)</li><li>Greater than or equal to (<code>>=</code>)</li><li>Less than (<code><</code>)</li><li>Less than or equal to (<code><=</code>)</li><li>Not equal (<code><></code>)</li></ul>                                                                                                                                                                                                                                                                         |
| Error message                                                                                                                                                                                                              | Message to display when the validated field is invalid                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Custom attributes**                                                                                                                                                                                                      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `timezoneconversion`                                                                                                                                                                                                       | <p>Applicable to Date and DateTime textbox fields only</p><p></p><p>This property allows the disabling of the default user time zone conversion behavior when the form field is in the Date or DateTime format.</p><p></p><p>This option is useful if you want to capture and maintain a consistent date-only value in the form field and process data without applying the time zone conversion that sometimes changes the date value depending on the original and current user time zones.</p><p></p><p>Accepted Boolean values: <code>true</code> or <code>false</code></p> |
| Additional reserved attribute names specific to validation                                                                                                                                                                 | `maxlength`, `requiredcondition`, `readonlycondition`, `hiddencondition`, `validationexpression`, `regularexpressionerrormessage`, `minimumvalue`, `maximumvalue`, `rangeerrormessage`, `onservervalidate`, `validateemptytext`, `customerrormessage`, `valuetocompare`, `controltocompare`, `operator`, `compareerrormessage`                                                                                                                                                                                                                                                  |

### ListBox/DropDownListBox field settings <a href="#listbox-dropdownlistbox-field-settings" id="listbox-dropdownlistbox-field-settings"></a>

These settings (except **Items**) apply to Label, ReadOnlyCurrency, ReadOnlyDate, ReadOnlyDateTime, ReadOnlyNumeric, and ReadOnlyText fields as well.

<div align="left"><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30mynR53OdVW9mQ%2Flistbox_settings_items.png?generation=1540843311997871&#x26;alt=media" alt=""></div>

<div align="left"><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30owkXaRZFV6VnE%2Flistbox_settings_databind.png?generation=1540843310292608&#x26;alt=media" alt=""></div>

| **Name / Icon**                                                                                                                                                                                                            | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30XurK33IvsiQld%2Fcheckmark_icon_12x10.png?generation=1540843309098576\&alt=media) | Close and apply the changes to the field                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30sy5bG4MhaXhn3%2Fclose_icon_12x11.png?generation=1540843313440602\&alt=media)     | Close and cancel the changes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| **Items**                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30u-s0xHkvhNSKh%2Fdragdrop_icon_12x15.png?generation=1540843311433973\&alt=media)  | Drag-and-drop to change the order of the items                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Selected                                                                                                                                                                                                                   | <p>Check the default selected items in the field<br></p><p>The DropdownListBox field supports single selection whereas the ListBox field supports multiple selections.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Value                                                                                                                                                                                                                      | Value of the item                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Text                                                                                                                                                                                                                       | Displays text of the item                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30wNYbZSeDTe2Kk%2Fadd_icon_12x12.png?generation=1540843309130847\&alt=media)       | Add a new item                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30es71YXLBI8ZHj%2Fdelete_icon_12x11.png?generation=1540843312791692\&alt=media)    | Delete the current item                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **Databind**                                                                                                                                                                                                               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Connection mode                                                                                                                                                                                                            | <p>Select the type of connection for data binding:</p><ul><li>Name</li><li>String</li><li>Global lists</li><li>XML</li><li>SharePoint</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| **Connection by name**                                                                                                                                                                                                     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Connection name                                                                                                                                                                                                            | <p>List of connection names defined in the WorkflowGen web configuration file (<code>\<connectionStrings></code>)</p><p>✏️ <strong>Note:</strong> It is strongly recommended to use a connection name rather than a connection string to simplify multi-environment management. Connection names are centrally managed in the WorkflowGen <code>web.config</code> file.</p>                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Select command                                                                                                                                                                                                             | <p>SQL select query</p><p>📌 <strong>Examples:</strong> <code>select column\_id</code>, <code>column\_text from table\_name;</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Data value field                                                                                                                                                                                                           | <p>The data field that provides the item value</p><p>📌 <strong>Example:</strong> <code>column\_id</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Data text field                                                                                                                                                                                                            | <p>The data field that provides the item text</p><p>📌 <strong>Example:</strong> <code>column\_text</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Append data bound items                                                                                                                                                                                                    | Check to append the data bound items to the list. Otherwise, the data bound items will replace all the existing items in the list.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **Parameters**                                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Name                                                                                                                                                                                                                       | <p>Specifies the parameter name if the <code>Select</code> command uses a filter with a dynamic value from a parameter in the select query.</p><p>📌 <strong>Example</strong>: <code>Name=PARAM; Select command=select column\_id, column\_text from table\_name where column\_id > @PARAM</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Data type                                                                                                                                                                                                                  | Specifies the data type of the parameter: `Boolean`, `Byte`, `Char`, `DateTime`, `DBNull`, `Decimal`, `Double`, `Empty`, `Int16`, `Int32`, `Int64`, `Object`, `SByte`, `Single`, `String`, `UInt16`, `UInt32`, `UInt64`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Filter by field                                                                                                                                                                                                            | Specifies another field in the current form where the dynamic value will be retrieved                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Default filter value                                                                                                                                                                                                       | Specifies the default value if the parameter field has an empty value or no value                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| If the value is empty                                                                                                                                                                                                      | <p>Select from one of the following:</p><ul><li>Do nothing</li><li>Remove all items</li><li>Filter on empty value</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Connection by string**                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Connection String                                                                                                                                                                                                          | <p>Specifies the connection string</p><p>📌 <strong>Example:</strong> <code>Data Source=sqlserver\_name;Initial Catalog=wfgen;User ID=wfgen\_user;Password=abc123!;</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Provider name                                                                                                                                                                                                              | <p>List of provider names defined in the WorkflowGen web configuration file (<code>AdministrationFormDataProviderName</code>). It also supports custom defined third-party .NET data providers.</p><ul><li>System.Data.SqlClient (.NET FWK Data Provider for SQL Server)</li><li>System.Data.OleDb (.NET FWK Data Provider for OLE DB)</li><li>System.Data.Odbc (.NET FWK Data Provider for ODBC)</li></ul>                                                                                                                                                                                                                                                                                                                                                                                   |
| Select command, Data value field, Data text field, Append data bound items, Parameters (Name, Field, Default value and Data type)                                                                                          | Same as **Connection by name**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **Connection by global lists**                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| List name                                                                                                                                                                                                                  | Specifies the list name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Data value column                                                                                                                                                                                                          | Select the column used for item’s value                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Data text column                                                                                                                                                                                                           | Select the column used for item’s label                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Sort column                                                                                                                                                                                                                | Select the column used to sort the list                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Append data bound items                                                                                                                                                                                                    | Check to append the data bound items to the list. Otherwise, the data bound items will replace all the existing items in the list.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **Filter**                                                                                                                                                                                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Column                                                                                                                                                                                                                     | Specifies the column name used to filter data                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Comparison operator                                                                                                                                                                                                        | <ul><li>Equal (<code>=</code>)</li><li>Not equal (<code><></code>)</li><li>Greater than (<code>></code>)</li><li>Greater than or equal to (<code>>=</code>)</li><li>Less than (<code><</code>)</li><li>Less than or equal to (<code>>=</code>)</li><li>Contains</li><li>Begins with</li><li>Ends with</li><li>Is null</li><li>Is not null</li><li>In</li><li>Not In</li><li>Between</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                 |
| Filter by field                                                                                                                                                                                                            | Select the form field that contains the filter’s value                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Default filter value                                                                                                                                                                                                       | The default value if the field is empty                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| If the value is empty                                                                                                                                                                                                      | Set the behavior of the filter if the value is empty                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Connection by XML**                                                                                                                                                                                                      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| URL                                                                                                                                                                                                                        | <p>Specifies the file name of an XML file for data binding</p><p>📌 <strong>Examples:</strong></p><ul><li><code>c:\myfile.xml</code></li><li><code>http\://server\_name/myfile.xml</code></li><li><code>http\://server\_name/service.asmx/getmyfilexml</code></li></ul><p>The XML file must be structured so that the properties of each element are expressed as attributes. If you have an XML file in which property values are expressed in a format other than attributes, you must:</p><ul><li>Create a transformation file (<code>.xslt</code>) that can dynamically reformat the <code>.xml</code> file so that it is compatible with the <code>XmlDataSource</code> control.</li><li>Specify the path of your XSLT file in the "XSL transform file" parameter (see below).</li></ul> |
| XPath                                                                                                                                                                                                                      | Specifies an XPath expression to be applied to the XML data contained by the XML file, e.g. `rss/channel/item`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| XSL transform file                                                                                                                                                                                                         | <p>Specifies the file name of an Extensible Stylesheet Language (XSL) file (<code>.xsl</code>) that defines an XSLT transformation to be performed on the XML file</p><p>📌 <strong>Example:</strong> <code>c:\myfile.xsl</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Data value field, Data text field, Append data bound items                                                                                                                                                                 | Same as **Connection by Name**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **Connection by SharePoint 2007 and 2010**                                                                                                                                                                                 | ✏️ **Note:** The settings in the config file have to be set to detect SharePoint for this option to be active.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| URL                                                                                                                                                                                                                        | <p>URL of the SharePoint list</p><p>📌 <strong>Example:</strong> <code><http://www.mysitesps.com/mylists></code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Name of the list                                                                                                                                                                                                           | <p>Name of the SharePoint list</p><p>📌 <strong>Example:</strong> <code>Country</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Data field value                                                                                                                                                                                                           | <p>Name of the column containing the value of the item</p><p>📌 <strong>Example:</strong> <code>Id\_Country</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Data text field                                                                                                                                                                                                            | <p>Name of the column containing the text of the item</p><p>📌 <strong>Example:</strong> <code>Description</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **Validation**                                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| **Behavior**                                                                                                                                                                                                               | ✏️ **Note:** To simplify the capture of a condition, the form fields and operators are listed in the **Select a field…** and **Select an operator…** drop-down menus. You can also press **`Ctrl+Space`**&#x74;o display a drop-down menu that lists the available variables and keywords.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Maximum length                                                                                                                                                                                                             | <p>The maximum number of characters that can be entered</p><p>✏️ <strong>Note:</strong> Not available for TextArea fields.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Required                                                                                                                                                                                                                   | Sets the field to be required                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Condition                                                                                                                                                                                                                  | <p>The field is required based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code.</p><p>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Read-only                                                                                                                                                                                                                  | Sets the field to be read-only                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Condition                                                                                                                                                                                                                  | <p>The field is read-only based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code.</p><p>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Hidden                                                                                                                                                                                                                     | Sets the field to be hidden                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Condition                                                                                                                                                                                                                  | <p>The field is hidden based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code.</p><p>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **Custom attributes**                                                                                                                                                                                                      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| timezoneconversion                                                                                                                                                                                                         | <p>Applicable to Date and DateTime Label fields only</p><p></p><p>This property allows for the disabling of the the default user time zone conversion behavior when the form field is in Date or DateTime format.</p><p></p><p>This option is useful if you want to capture and maintain a consistent date-only value in the form field and process data without applying the time zone conversion that sometimes changes the date value depending on the original and current user time zones.</p><p></p><p>Accepted Boolean value: <code>true</code> or <code>false</code></p>                                                                                                                                                                                                              |
| Additional reserved attribute names specific to Databind                                                                                                                                                                   | `connectionname`, `connectionstring`, `providername`, `xmldatasource`, `xpath`, `transformfile`, `selectcommand`, `parametername`, `parametercontrolid`, `parameterdefaultvalue`, `parametertype`, `datavaluefield`, `datatextfield`, `appenddatabounditems`, `spsdatasource`, `spsdatalist`, `spsdatavaluefield`, `spsdatatextfield`                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

### GridView field settings

<div align="left"><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-MDRcwdeQ5Sm9ZEq2VWc%2F-MDRiubf-qfOe-0fSYn6%2Fgridview_settings_columns.png?alt=media&#x26;token=c0ade2a7-1920-4ccd-a1e7-fcc5561e7d78" alt=""></div>

<div align="left"><img src="https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-MDRcwdeQ5Sm9ZEq2VWc%2F-MDRiyLwH9Q7LqzYd-IG%2Fgridview_settings_appearance.png?alt=media&#x26;token=3991cdf1-727f-4002-b461-1a7c57b6302a" alt=""></div>

| Name / Icon                                                                                                                                                                                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30XurK33IvsiQld%2Fcheckmark_icon_12x10.png?generation=1540843309098576\&alt=media) | Close and apply the changes to the field                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30sy5bG4MhaXhn3%2Fclose_icon_12x11.png?generation=1540843313440602\&alt=media)     | Close and cancel the changes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **Columns**                                                                                                                                                                                                                |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30u-s0xHkvhNSKh%2Fdragdrop_icon_12x15.png?generation=1540843311433973\&alt=media)  | Drag-and-drop to change the order of the columns                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Header text                                                                                                                                                                                                                | Display text on the column header                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Field type                                                                                                                                                                                                                 | <p>List of field types supported in the GridView:</p><ul><li>DropDownListBox</li><li>ListBox</li><li>Label</li><li>TextArea</li><li>TextBox</li></ul><p>✏️ <strong>Notes:</strong></p><ul><li>TextBox and TextArea fields in the GridView do not support the validation settings.</li><li>The Label field in the GridView does not support the databind settings.</li></ul>                                                                                                                                                                                                 |
| Footer text                                                                                                                                                                                                                | <p>Display text of the column’s footer</p><p></p><p>The column’s footer text can be plain text or an expression used to filter rows, calculate the values in a column, or create an aggregate column (e.g. to calculate a summary from all the row values of the same column: <code>=SUM</code>). For more information, refer to <code>DataColumn.Expression</code> at <a href="http://msdn.microsoft.com/en-us/library/system.data.datacolumn.expression(v=VS.80).aspx"><http://msdn.microsoft.com/en-us/library/system.data.datacolumn.expression(v=VS.80).aspx></a>.</p> |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30wNYbZSeDTe2Kk%2Fadd_icon_12x12.png?generation=1540843309130847\&alt=media)       | Add a new column                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ![](https://4110701782-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ0OuyalhD4eRB31PgV%2F-LQ0P-T4HIR4NuuKqbhT%2F-LQ0P30es71YXLBI8ZHj%2Fdelete_icon_12x11.png?generation=1540843312791692\&alt=media)    | Delete the current column                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Appearance**                                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Edit button label                                                                                                                                                                                                          | Display text for the edit button                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Delete button label                                                                                                                                                                                                        | Display text for the delete button                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Update button label                                                                                                                                                                                                        | Display text for the update button                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Cancel button label                                                                                                                                                                                                        | Display text for the cancel button                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Show edit button                                                                                                                                                                                                           | Check to display edit button                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Show delete button                                                                                                                                                                                                         | Check to display delete button                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Show header                                                                                                                                                                                                                | Check to display the header                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Show footer                                                                                                                                                                                                                | Check to display the footer                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Validation**                                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| **Behavior**                                                                                                                                                                                                               | ✏️ **Note:** To simplify the capture of a condition, the form fields and operators are listed in the **Select a field...** and **Select an operator...** drop-down menus. You can also press **`Ctrl+Space`**&#x74;o display a drop-down menu that lists the available variables and keywords.                                                                                                                                                                                                                                                                              |
| Required                                                                                                                                                                                                                   | Sets the field to be required                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Condition                                                                                                                                                                                                                  | <p>The field is required based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code.</p><p>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                                                                                                                                                                                                                                                                                                          |
| Read-only                                                                                                                                                                                                                  | Sets the field to be read-only                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Condition                                                                                                                                                                                                                  | <p>The field is read-only based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code.</p><p>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                                                                                                                                                                                                                                                                                                         |
| Hidden                                                                                                                                                                                                                     | Sets the field to be hidden                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Condition                                                                                                                                                                                                                  | <p>The field is hidden based on a custom condition. If the condition is empty then it will be true. The custom condition must be server-side C# syntax code.</p><p>📌 <strong>Example:</strong> <code>MyTextBox.Text == "Hello World"</code></p>                                                                                                                                                                                                                                                                                                                            |
| Additional reserved attribute names specific to **GridView / Appearance**                                                                                                                                                  | `edittext`, `deletetext`, `updatetext`, `showheader`, `showfooter`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |

### ASP.NET user control field tool <a href="#asp-net-user-control-field-tool" id="asp-net-user-control-field-tool"></a>

The Form Designer supports a custom field tool that is an ASP.NET user control. You can create this tool and manually deploy it on the server. It must have the following elements, folder and file structures:

**User control field template:** \
\
`\wfgen\App_Data\Templates\Forms\[language]\[folder name]\fields\[user control name].txt`&#x20;

**User control sources:**

* ASCX: `\wfgen\WfApps\WebForms\[user control name].ascx` <br>
* Code-behind: `\wfgen\WfApps\WebForms\[user control name].ascx.cs`

When you enter a tag, the user control field automatically inserts its closing tag. To collapse a code block, click the down arrow next to the line number, which will insert a double-arrow icon in place of the code. To expand the code block, click the right arrow. Press **`Ctrl+Space`** to show a drop-down menu that displays the available variables and keywords.

The user control field supports the Custom attributes settings (see [File attachment field settings](#file-attachment-field-settings)).

### ID editing

The **ID menu** in the toolbar will activate the field’s identifier edit mode. You can change the identifier of the header label, sections and fields. Identifiers are normally used to identify a form element such as a section or a field in WorkflowGen’s action parameters (e.g. `FORM_FIELDS_REQUIRED`) or in the form’s ASP.NET code-behind.

#### Rules

* Each identifier must be unique.<br>
* It must start with a letter.<br>
* It can only contain alphanumeric and underscore characters.<br>
* It is case sensitive.<br>
* Each field within a section will be automatically prefixed with the section’s identifier following an underscore character (e.g. `section id=ACTION1; field id=ACTION1_MYFIELD1`)<br>
* Each field within a GridView field will be automatically prefixed with the GridView’s identifier following the underscore character (e.g. `gridview id=ACTION1_MYGRIDVIEW1; field id=ACTION1_MYGRIDVIEW1_TITLE1`).<br>
  * If the field is moved from one section to another section, then the field’s identifier will be automatically prefixed with the new section’s identifier.<br>
  * If the section’s identifier is changed then all the fields within the section will be automatically prefixed with the new section’s identifier.

{% hint style="info" %}
A tooltip with the full/real identifier of the element will be displayed when you mouseover the identifier input field.
{% endhint %}

### Tooltip editing

The **Tooltip** menu in the toolbar will activate the field’s tooltip edit mode. You can change the tooltip for the form fields only. Tooltips are normally used to display more information about the field when the user moves the mouse pointer over it.

### Format editing

The **Format** menu in the toolbar will activate the field’s format edit mode. You can change the format of TextBox, Currency, Date, DateTime, Numeric, Label, ReadOnlyCurrency, ReadOnlyDate, ReadOnlyDateTime, ReadOnlyNumeric and ReadOnlyText fields. Formats are normally used to specify the way to capture and display a specific type of value based on the user’s language and culture.

| Format types                   | Description                                                       |
| ------------------------------ | ----------------------------------------------------------------- |
| Numeric                        | The value is numeric                                              |
| Currency                       | The value is a currency                                           |
| Date Time (system)             | WorkflowGen's default date time                                   |
| Short date                     | 6/10/2019 1:45:30 PM ➞ `6/10/2019` (en-US)                        |
| Long date                      | 6/10/2019 1:45:30 PM ➞ `Monday, June 10, 2019` (en-US)            |
| Short time                     | 6/10/2019 1:45:30 PM ➞ `1:45 PM` (en-US)                          |
| Long time                      | 6/10/2019 1:45:30 PM ➞ `1:45:30 PM` (en-US)                       |
| Full date/time (short time)    | 6/10/2019 1:45:30 PM ➞ `Monday, June 10, 2019 1:45 PM` (en-US)    |
| Full date/time (long time)     | 6/10/2019 1:45:30 PM ➞ `Monday, June 10, 2019 1:45:30 PM` (en-US) |
| General date/time (short time) | 6/10/2019 1:45:30 PM ➞ `6/10/2019 1:45 PM` (en-US)                |
| General date/time (long time)  | 6/10/2009 1:45:30 PM ➞ `6/10/2019 1:45:30 PM` (en-US)             |
| Month/day                      | 6/10/2019 1:45:30 PM ➞ `June 10` (en-US)                          |
| Round-trip date/time           | 6/10/2019 1:45:30 PM ➞ `2019-06-10T13:45:30.0900000`              |
| RFC1123                        | 6/10/2019 1:45:30 PM ➞ `Mon, 10 Jun 2019 20:45:30 GMT`            |
| Sortable date/time             | 6/10/2019 1:45:30 PM ➞ `2019-06-10T13:45:30`                      |
| Universal sortable date/time   | 6/10/2019 1:45:30 PM ➞ `2019-06-10 20:45:30Z`                     |
| Universal full date/time       | 6/10/2019 1:45:30 PM ➞ `Monday, June 10, 2019 8:45:30 PM` (en-US) |
| Year/month                     | 6/10/2019 1:45:30 PM ➞ `June, 2019` (en-US)                       |
