This article will show you how to add the Number field to a Content Type in the HCMS. The Number field type allows you to input ID numbers, order numbers, ratings, and quantities.
Instructions
- Navigate to Content Types on the left-hand side and select your desired Content Type
- Click Add Field
- Select Number
- Add a Field Name
Note: The field name can only contain letters with no spaces and cannot be changed. The display name can be edited in the Label section. - Select Create and edit field
- Configure Common fields
- Name (non-editable): Name of the field in the API response
- Label: Define the display name for the field for documentation and user interfaces
-
Hints: Add some hints for the user and editor for the field
- List Field: List fields display as a column in the content list; when no list field is defined, the first field is used
- Tags: Add tags to annotate your field for automation processes
- Configure Validation fields
- Unique: Check to indicate that the number must be a unique number, meaning it is not repeated elsewhere
- Required: Check to indicate the field as required
- Range: Enter a Minimum and Maximum value
- Default Value: Enter a default value that will populate the field but can still be edited
- Configure Editing fields
- Editor URL: Add a URL to your plugin if you use a custom editor
- Placeholder: Define the placeholder for the input control
-
Editor: Select a type of editor
-
Input: Allows inputs
- Inline Editable: Allow for editing
-
MaskInput: Hides the input, for use with currency
- Masked Input: Choose to mask the selected value
-
Dropdown: Create a dropdown menu
- Allowed Values: Enter tags
- Inline Editable: Check to allow for editing
-
Radio: Create radio buttons
- Allowed Values: Enter relevant tags
-
Stars: Input star amounts
- Inline Editable: Check to allow for editing
-
Input: Allows inputs
- Click Save and close
Comments
Let us know what was helpful or not helpful about the article.0 comments
Please sign in to leave a comment.