ShortText Field is used for storing short strings. Maximum length of the stored data is 450 characters (this value however can be limited to a lower value in the Field Setting of the Field). If you want to store text strings longer than this consider using the LongText Field.
The following apply to the behavior of the Field:
Usage in CTD:
<Field name="ShortDesc" type="ShortText"> ... </Field>
The following properties can be set in the Field’s Field Setting configuration:
For a complete list of common Field Setting configuration properties see CTD Field definition.
Fully featured example:
<Field name="ShortText1" type="ShortText"> <DisplayName>ShortText data</DisplayName> <Description>Field for storing at most 450 characters.</Description> <Configuration> <ReadOnly>false</ReadOnly> <Compulsory>true</Compulsory> <DefaultValue>hello world</DefaultValue> <MaxLength>15</MaxLength> <MinLength>3</MinLength> <Regex>[a-zA-Z0-9]*$</Regex> </Configuration> </Field>
The above example configures the ShortText Field so that:
Is something missing? See something that needs fixing? Propose a change here.