Documentation Index

Fetch the complete documentation index at: https://www.civicplus.help/llms.txt

Use this file to discover all available pages before exploring further.

Add the Number Field to a Content Type

Prev Next

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.

Who can use this feature?

Owner | Developer | Publisher | Author (submit for review)  

Instructions

  1. Sign in to the HCMS

  2. Navigate to Content Types on the left-hand side, and select your desired Content Type Content Types section showing various types including a highlighted Department entry.

  3. Click Add FieldList of fields with a highlighted button to add a new field.

  4. Select NumberInterface showing various field types including a highlighted 'Number' field option.

  5. Add a Field NameInput field for entering a field name in a user interface design.

    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.

  6. Select Create and edit fieldButtons for creating and editing fields in a user interface layout.

  7. Configure Common fields Editing field settings for API response, including name, label, hints, and tags.

    • 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

  8. Configure Validation fields Edit field settings with options for validation, including unique and required checkboxes.

    • 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

  9. Configure Editing fields Editing field settings with options for editor URL, placeholder, and editor type selection.

    • 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 User interface elements for input types including dropdowns, radio buttons, and stars.

        • Inline Editable: Allow for editing

      • MaskInput: Hides the input, for use with currency User interface showing various input options for a form editor, including Masked Input.

        • Masked Input: Choose to mask the selected value

      • Dropdown: Create a dropdown menu Dropdown menu options for input types including radio and star ratings.

        • Allowed Values: Enter tags

        • Inline Editable: Check to allow for editing

      • Radio: Create radio buttons Selection of input types including radio buttons and dropdown options for user interface.

        • Allowed Values: Enter relevant tags

      • Stars: Input star amounts Editor interface displaying various input options including stars for selection.

        • Inline Editable: Check to allow for editing

  10. Click Save and close The Save and close button is highlighted on the content type page.