Fields – String

Strings are one of the more basic field types within the trellispark framework; they simply record a text value to be used later. trellispark allows for the creation of a masked text box alongside the simple text box field type, or for a multiline string that will allow the string text area to expand based on how much text has been entered.

This is what a string will look like in a trellispark form:

A screenshot of a string field in trellispark, showing the blue label, a field description, and a text field.

There is a Mask text field that allows the user to include a mask that can be used to control formatting of the masked text box in a simpler format than using Regular Expression (regex). If no Mask information is filled in, the field will automatically display a regular text box control.

A screenshot of the field creation process for a string field in trellispark.

String formatting in a typical text box control can be controlled and enforced through Regular Expression (regex) with a defined error to display if incorrect data is presented.

A string may be a required field or used as a Lookup Field within a search table, with an XML Element Name to store it within the database. A Default Value can be assigned to the string as a demonstration of how this field will be formatted alongside the usual empty message and tool tip options. A string may also have a maximum length assigned by the user.

The Auto Postback field is used to determine if the page will be refreshed when the field is updated.

Multiline String

Multiline strings are similar to regular strings, except that they have a larger space to save the data. They can be selected in the String Type field to allow a variably sized textbox to be created.

The main difference between a multiline string and a string is that the size of the textbox for a multiline string can now grow as additional characters are added. They cannot be controlled by regex or a mask and should be used for fields that will be saving a long form answer or some degree of detail, such as the Description fields.

Updated on January 16, 2023

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support

Leave a Comment