Every field has some properties that can be configured to have more control over the data they store.
There are three levels of configuration:
- Default
- Validation
- More
Default Properties
1. Field Name
The field name of a field is the text that is displayed before its input area in a form. This lets your users know what information they are to enter in that field.
Limitations:
- The minimum length of characters allowed is 3.
- Special characters are not allowed for this field property.
2. Internal Field Name
The field's internal name is the name with which a field is internally referred within Experro. It can contain letters of the English alphabet in both lower and upper case, numbers, and underscore ( _ ). The field's internal name is unique for fields in a content model, i.e., there cannot be more than one field in a content model with the same internal field name.
Limitations:
- The minimum length of characters allowed is 3.
- The first character in the field link name must be a letter.
- Special characters are not allowed for this field property except underscore.
- The value for the internal field cannot be changed later.
3. Enable search for this field
Enable this option to allow search on the data stored in this field, i.e., if you tick this option, then the field data will appear in the search.
4. Short Text
You can choose this option for the text-type field when you want to capture single-line text, that is, without any line breaks. It does not allow any text formatting.
5. Long Text
You can choose this option for the text-type field to capture multi-line text, like a paragraph or long description. It allows line breaks, but again, no formatting is allowed.
6. Values (one line per value)
The values field allows you to enter the values for Single/Multi-Select field type that will be displayed to choose from while entering the data. The values are considered to be separated by a line break, so you need to enter a value in one line, then the next value goes in the next line.
7. Date Type
This property is of the Date type field, which lets you configure the type of date value it should expect. It can be a Date, Datetime, or Time.
- Selecting “Date” would present a date picker to choose a date.
- Selecting “Datetime” would present a date time picker to choose a date and time.
- Selecting “Time” would present a time picker to choose a time.
8. Single Media
This media type field property allows you to upload only a single media file in the field. If you choose another file to upload, the previously uploaded media will be replaced with the current one.
9. Multiple Media
This media type field property allows you to upload multiple media files in the field. As of now, there is no limit to the number of files one can upload.
Validations Properties
10. RegExp Pattern
This property of the field lets you define a regular expression pattern to make sure the value entered in the fields matches the pattern. Otherwise, it will not be acceptable, and an error message will be displayed.
11. Required Field
This property enables you to mark the field as required, which means the user cannot leave it blank.
When you mark the field as required, an asterisk appears before the name of that field to show that it's required.
12. Unique Field
This property enables you to set the field value uniquely, preventing data duplication.
For example, when creating an Email field, you would mark it as Unique, so the field doesn’t accept duplicate values.
13. Enable Localization
This property enables you to set whether the value entered in this field should be translated or not. If enabled, then the value will be translated when the user changes their language preference. If you don’t enable this option, then the value you provide in the master or original language will be reflected in all other localized copies of this entry.
14. Private Field
This property enables you to make the field private and prevent it from being discovered by the API. The field will not be shown in the API response.
15. Minimum Length
This property will enable you to set a minimum length of characters that will be allowed in the input.
For example, if you are creating a password field, then you might need to specify the minimum number of characters that should be accepted to make the password strong.
16. Maximum Length
This property will enable you to set a maximum length of characters that will be allowed in the input.
For example, if you are creating a password field, then you might need to specify the maximum number of characters that should be accepted.
17. Allowed File Types
This property of the Media field will enable you to choose the type of files that should be allowed to upload. The options available are:
- Images (JPG, PNG, GIF, SVG, TIFF, WEBP, etc.) - You can choose this option to allow only images.
- Files (CSV, ZIP, MP3, PDF, Excel, PPT, etc.) - You can choose this option to allow other files like documents, audio, or compressed files but not images.
- You can leave this field blank to allow all types of supported files.
Additional Properties
18. Default Value
This property lets you enter a default value for the field, so you don’t have to enter the value again and again if it might repeat for a particular content type. You can change the default value of a field at any point in time.
When you set a default value, it will automatically be populated in the field when you add entries for this field.
19. Help Text
This property lets you specify the value that should appear in a tooltip when the user hovers on the info icon next to the field for which you have configured the help text.
20. Placeholder
This property enables you to write the placeholder value for the field. The value entered here will be displayed inside the field's input area and disappear once the user starts typing anything.