String
Description
Any form of text that is captured on the Factorial Form and is stored in a text or string data type on the backend Data Store
Valid Display Data Types
Regardless of how the data is stored on the backend Data Store, the field can be displayed in any of these formats on the front end. The data will be converted into a string when storing it to the Data Store
- String
- Bool
- Currency
- Date
- Decimal
- Float
- GUID
- Int
- Lookup
- Option Set
Display Formats
Supports the following types of display formats
| Format | Description |
|---|---|
| Single Line | Displays the field as a single line of text |
| Multi Line | Displays the field as a multi line of text, or text area |
| Adds email address validation to the single line field | |
| URL | Adds URL validation to the single line field |
| Phone | Adds phone number validation to the single line field |
| ## Additional Properties |
Additional properties that can be defined for the field in addition the ones shared across all Standard Field Types
| Property | Description |
|---|---|
| Minimum Length | The minimum allowed length of the value entered by the end user, assuming any data has been entered |
| Maximum Length | The maximum allowed length of the value entered by the end user, assuming any data has been entered |
Partial masking
Partial masking hides part of a String field's value while leaving a chosen number of characters visible. The same masked value appears on the form's summary. Masking changes how the value is shown; the complete value is still saved.
The Masking settings are available for String fields with Default, Single Line, Email, Phone, URL, or Multi Line format. Password and Type Ahead do not support partial masking: Password uses its own show/hide control, and Type Ahead uses a lookup-style control. Other display data types and formats do not show these settings. If an existing field is changed to an unsupported format, saving it removes its partial masking configuration.
To configure it:
- Add or edit a standard field, select String as its display data type, and choose a supported format.
- In Masking, turn on Enable Partial Masking.
- Set Visible Characters and choose a Mask Character (
•or*). - Set Mask Direction to Show First or Show Last. Turn on Allow Reveal if users should be able to show the complete value with an eye icon when one is included in the field's HTML.
- Save the field and preview the form to check the result.
For example, a value of 123456789 with Show Last, Visible Characters set to 4, and * as the mask character appears as *****6789. If the value has fewer characters than the visible count, all its characters remain visible.
Optional eye icon in a custom field template
If the field's HTML includes an icon marked npo-input-mask-eye beside the input and Allow Reveal is on, users click the icon to show or hide the complete value. Clicking in the field alone keeps it masked. If there is no such icon, clicking in the field shows the complete value while the user edits it; leaving the field masks it again. When Allow Reveal is off, the icon is not used and the value is shown only while editing.
Place the eye button beside the text input in the same input group. For a custom field template, this example provides the input and optional eye icon:
<div class="form-group mb-3 field npo-field">
<label for="[[COREMETA_FIELDINSTANCEID]]">[[COREMETA_FIELDLABEL]]</label>
<div class="input-group">
<input type="text" class="form-control npo-input"
id="[[COREMETA_FIELDINSTANCEID]]"
data-id="[[COREMETA_FIELDID]]">
<button type="button" class="btn btn-outline-secondary" aria-label="Show value">
<svg class="npo-input-mask-eye" viewBox="0 0 24 24" width="18" height="18"
fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12Z"></path>
<circle cx="12" cy="12" r="3"></circle>
<line class="npo-input-mask-slash" x1="3" y1="21" x2="21" y2="3"
style="display: none"></line>
</svg>
</button>
</div>
<div id="[[COREMETA_FIELDINSTANCEID]]_validation" class="invalid-feedback"></div>
</div>
The form changes the eye icon and its label as users show or hide the value. The masking choices remain configured on the field; they do not need to be written into the template.