Add Datatype
Define the format of a single-value input control, such as text or a number, that a user can enter in a field. A datatype is used to characterize a value entered through an input control. A datatype must be of type text, number, date, or date-time. It can include constraints on the value of the input, for example maximum and minimum values.
|
1.
|
Select a datatype from the Type list.- Text: For this datatype, enter a regular expression in the Pattern field, which validates the text the user submits; for example, it may check an email address is entered using the correct format: xxx@xxx.xxx.
- Number: For numerical datatypes, you can enter minimum and maximum values and select whether the minimum and maximum values are acceptable in the Minimum is Strict and Maximum is Strict check boxes. If you select a check box, the minimum or maximum value is not acceptable. For example, for a percent field, you can enter a minimum of 0 and a maximum of 100 percent. If you do not want to accept 0 percent, select Minimum is Strict. If you want to accept 100 percent, clear Maximum is Strict.
- Date: Click the calendar icon to open the calendar widget, where you can select minimum and maximum dates. If you do not want to accept the minimum date value, but everything after that date, select Minimum is Strict. If you want to accept the maximum date value as valid, clear Maximum is Strict.
- Date/Time: This datatype has the same setup as the Date datatype, except you can also use the calendar to select an exact time (hours, minutes, and seconds) on the minimum and maximum dates. If you do not want to accept the minimum date and time values, select Minimum is Strict. If you want to accept the maximum date and time values as valid, clear Maximum is Strict.
- Time: This datatype is similar to the Date/Time datatype, except you can only use the calendar icon to select a minimum and maximum time (hours, minutes, and seconds). If you do not want to accept the minimum time value, select Minimum is Strict. If you want to accept the maximum time value as valid, clear Maximum is Strict
|
|
2.
|
Enter a name.
Note: Resource ID (automatically copies the name entered). You can edit the ID. |
|
3.
|
(Optional) Enter text in the description. |