<input>

Extension of the standard HTML <input>; extended attributes are available when type="text".

The <input> tag is used to create data entry elements. An input field varies depending on the type of attribute you assign to it. An input field can be a text field, a checkbox, a radio button, a button, and more.

<input> attributes
Attribute Allowed Values Requirements Description

fieldlength

(NUMBER)500

Optional

Sets the table field length and sets the max length attribute of the same value.

fieldtype

bigint, bit, char, datetime, decimal, float, geography, int, money, nchar, numeric, nvarchar, real, smallint, smallmoney, tinyint, uniqueidentifier, varchar, xml

Optional

Allows assigning a data type for the underlying SQL column.

format

 

Optional

Allows assigning a date format for date data types.

label

CDATA

Optional

Text of the label or legend for this value.

required

(false|true)

Optional

Adds client-side checking that requires a value be set.

table

(parent table name)

Optional

Must be the parent table of the current record; only works with <type>.

type

Refer to the information below.

Optional

 

validate

(datetime|date|time|integer|decimal)

Optional

Client-side type validation.

value

(_currentdate|_currentdatetime|_currenttime|_number|_positionname|_sessionname|_username|CDATA)CDATA

Optional

Allows assigning a data type, handling, or default value.

async

(false|true)

Optional

  • When asynchronous mode is enabled, the attachment upload starts asynchronously, immediately after the file selection.

  • When this mode is disabled, the attachment is uploaded when the form is submitted.

When this mode is disabled, the attachment is uploaded when the form is submitted.

When asynchronous mode is enabled, the tag renders additional elements (for example, progress bar, Cancel button, and so on).

Type: You can use the following values for the type attribute:

  • text – Creates a text field (<input type="text" />).

  • checkbox – Creates a checkbox (<input type="checkbox" />).

  • file - Creates a file selection option, allowing the user to locate and upload a file (attachment) (<input type="file" />).

    • When the type attribute is set to file and a file has been uploaded to the record, the area to the right of the input field automatically includes two icons. The green checkmark icon indicates the record has an attachment. The remove icon ("x" in a black circle) allows the user to delete the attached file from the record.

      Browse button

    • The remove icon will display in the board only when the board uses the latest default stylesheet.

  • radio – Creates a radio button (<input type="radio" />).

  • hidden – Hides the input field (<input type="hidden" />).

Parent/child: You have the option to update a parent record from the child input record. To do this, include the table attribute in the <input> tag. Specify the parent table as the attribute's value. This use of the table attribute works only within an input field where the type="text".

Type is text: Text input fields can have the predefined values listed in the previous table. These predefined values in particular cause the field type to be datetime:

  • currentdate – Causes the field to be the current date. The format is 101 (mm/dd/yyyy).

  • _currenttime – Causes the field to be the current time. The format is 108 (hh:mm:ss).

  • _currentdatetime – Causes the field to be both the current date and time. The format is 100 (mm/dd/yyyy hh:mm:ss).

  • _number – Causes the field to be 0 and the field type to be int (integer). The format is 0 (int).

Example The code <input type="text" value="_currentdate" /> causes the field type to be the current date.

The following code specifies that you want a text field, of which you want named Location. The code below also includes the label attribute, allowing you to specify that a label should appear in all generated reports from the WebEOC Nexus Reporter.

Copy Code
<input type="text" name="location" label="Location" />

When the label is defined, field names no longer display in reports – they are only used if labels are not defined.