Skip to main content
Skip table of contents

Custom Field Setting

Custom fields in AssetIT allow you to add additional data fields to your asset records, providing the flexibility to capture unique information that is specific to your organization's needs. Here, you can manage your FieldSets and Custom Fields.

To manage these, click on the dropdown “Settings” on the sidebar menu > click on “Custom Fields”.

image-20240513-081815.png

FieldSet

  • A FieldSet is a group of Custom Fields.

A fieldset will be assigned at the Asset Model level.

For example, you want to track your phone as an asset. You could create custom fields “IMEI“, “SIM“, “OS“, etc which are not covered by default. You would then assign all of those mobile phone related fields to a new “Mobile Phones“ FieldSet, and use it for your mobile phone asset models (iPhone, feature phones, Android phone, etc).

  • Click on FieldSets to see a dropdown list of existing sets, including:

    • Name of the set

    • Number of fields in that set

    • Name(s) of asset model(s) that is using that set.

    • Actions to take on a set: Edit/delete

  • You can create a new field set, search, export, re-order, or hide/show the columns of a set.

Create a New FieldSet

  1. Click on “New FieldSet” to start creating a new group of custom fields.

  2. Enter a name for your FieldSet. Choose a name that clearly identifies the purpose or the type of assets the FieldSet will be associated with.

  3. Select Custom Fields:

  • Drag & Drop Fields: You will see two columns. One lists available custom fields and their details, and the other is for the fields you choose to include in your FieldSet. Drag and drop fields from the available list to your FieldSet.

  • Mark Required Fields: For any field that is mandatory for the assets, click the “Required” checkbox next to that field. This ensures the field must be filled out when the FieldSet is used.

4. After selecting and organizing your custom fields and marking any as required, click the “Save” button to complete the creation of your new FieldSet.

image-20240513-084103.png

Custom fields

  • Custom fields allow you to track additional information about your assets that the default asset attributes don't cover.

image-20240513-090128.png
  • In Custom Fields section, you can see a list of all existing Custom Fields, including:

    • Name: Displays the name of the custom field

    • Default: Shows ✅ (yes) or ❌ (no) indicating whether the custom field is set as a default field that appears automatically when new assets or resources are added.

    • Resource: Specifies the type of resource the field is associated with, such as Asset, Accessory, License, Component, or Consumable.

    • Format: Shows the format of the data that can be entered in the field, which could be ANY, ALPHA, ALPHA-DASH, etc.

    • Regex: Includes regular expressions like /^[a-z]{2,5}$/ which set specific rules for what the field can accept. This particular example limits input to lowercase alphabetic characters with a length between 2 and 5.

    • Element: Lists the type of UI element used for data entry, such as: Text Box, Check Box, List Box, Text Area, Date Picker, User Picker, Radio Buttons)

    • FieldSet(s): Indicates whether the custom field is part of one or more fieldsets.

    • Help Text: Provides a brief description or guidance on what should be entered in the field or how it should be used. This is particularly useful for ensuring data is entered correctly.

  • You can create a new field, search, export, re-order, or hide/show the custom field.

Create a New Custom Field

  • Click on “New Custom Field” to start the process of adding a new field.

  • Choose Field Type: A selection window will appear, allowing you to choose from several field types, each suited to different kinds of data:

    • TextBox: A simple text input for one-line information.

    • ListBox: A dropdown menu allowing selection from multiple predefined options.

    • TextArea: A larger text box for entering more extensive data.

    • Date Picker: A tool to select a specific date.

    • Checkbox: A small box that can be checked or unchecked to make a binary choice.

    • Radio Buttons: Allows the selection of one option from a set of choices.

    • User Picker: Enables selecting user(s) from a list.

image-20240327-042349.png
  • After selecting the desired type, click on “Next” to move to the configuration details.

image-20240327-102808.png
  • Fill in the necessary information along with the instructions.

  • Click “Done” to finish.

Custom Field Validation

AssetIT has pre-defined all the possible formats for your custom fields. When creating/editing a custom field, just select a format that matches your field the most.

Following is a list of pre-defined format:

Format

Description

ANY

No input validation. Any text is acceptable.

ALPHA

The field under validation must be entirely alphabetic characters.

ALPHA-DASH

The field under validation may have alpha-numeric characters, as well as dashes and underscores.

NUMERIC

The field under validation must be numeric and limited to 9 numbers.

ALPHA-NUMERIC

The field under validation must be entirely alpha-numeric characters.

EMAIL

The field under validation must be formatted as an e-mail address.

DATE

The field under validation must be a valid date according to the strtotime PHP function.

URL

The field under validation must be a valid URL.

IP

The field under validation must be an IP address.

IPV4

The field under validation must be an IPv4 address.

IPV6

The field under validation must be an IPv6 address.

MAC

The field under validation must be a valid MAC address.

BOOLEAN

The field under validation must be able to be cast as a boolean. Accepted input are true, false, 1, 0, "1", and "0".

CUSTOM

This field allows you to use a regex expression for validation. It should start with regex: - for example, to validate that a custom field value contains a valid IMEI (15 numeric digits), you would use regex:/^[0-9]{15}$/.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.