Overview
Custom fields allow you to define specific attributes for your inventory items beyond the standard fields. Each field can have its own data type, validation rules, and display format, enabling you to track exactly the information you need.Field Types
Invenicum supports seven custom field types, each optimized for different data:Text
General text input for names, descriptions, and labelsUse cases: Serial numbers, notes, conditions
Number
Numeric values without decimalsUse cases: Quantity, year, edition number
Price
Monetary values with decimal precisionUse cases: Purchase price, current value, MSRP
Date
Date picker for temporal dataUse cases: Purchase date, warranty expiration, release date
Dropdown
Predefined list of optionsUse cases: Condition, status, category, platform
Boolean
Yes/No or True/False valuesUse cases: Complete-in-box, working, favorite
URL
Web addresses with validationUse cases: Product page, manual PDF, related links
Field Type Implementation
Custom field types are defined using an enum:Type Properties
Each field type has associated properties:Technical Name (dbName)
Technical Name (dbName)
Display Name
Display Name
Keyboard Type
Keyboard Type
Field Validation
Custom fields include built-in validation:URL Validation
- Start with http://, https://, or ftp://
- Have a valid domain structure
- Don’t contain invalid characters
Price Validation
- Must be numeric
- Allows comma or period as decimal separator
- Maximum two decimal places
- No negative values
Custom Validation
Field Formatting
Some field types automatically format values:Price Formatting
- Input: “123” → Output: “123.00”
- Input: “45.6” → Output: “45.60”
- Input: “99,99” → Output: “99.99”
Creating Custom Field Definitions
When setting up an asset type or template:Configure Properties
Set field properties:
- Name: Display label for the field
- Type: One of the seven field types
- Required: Whether the field must be filled
- Default Value: Initial value for new items
- Helper Text: Guidance for users
Using Custom Fields in Asset Types
Custom fields are associated with asset types:- Define the Asset Type - Create or edit an asset type
- Add Custom Fields - Specify which fields apply to this type
- Create Items - New items will include these custom fields
- Modify Later - You can add or remove fields without affecting existing data
Adding new fields to an asset type doesn’t modify existing items. The new fields will appear empty for existing items until you edit them.
Field Type Selection Guide
When to Use Text
When to Use Text
Best for:
- Short descriptive content
- Identifiers and codes
- Notes and comments
- Names and labels
- Data that needs validation (use specific types)
- Limited options (use dropdown)
- Numeric calculations (use number or price)
When to Use Number vs Price
When to Use Number vs Price
Use Number for:
- Whole values (quantity, year, count)
- Non-monetary measurements
- Integer ranges
- Monetary values
- Values requiring decimal precision
- Financial calculations
- Currency amounts
When to Use Dropdown vs Boolean
When to Use Dropdown vs Boolean
Use Dropdown for:
- 3+ predefined options
- Mutually exclusive states
- Standardized categories
- Exactly two states
- Yes/No questions
- True/False conditions
- On/Off settings
When to Use URL
When to Use URL
Best for:
- External references
- Documentation links
- Product pages
- Media resources
- Automatic validation
- Clickable in item views
- Protocol enforcement (http/https/ftp)
Advanced Field Patterns
Calculated Fields
While custom fields store static data, you can create calculated values:Conditional Fields
Show fields based on other field values:Field Dependencies
Create relationships between fields:Best Practices
Field Design
- Use descriptive field names
- Choose the most specific type
- Provide helpful defaults
- Add clear helper text
- Keep required fields minimal
Data Consistency
- Use dropdowns for standardized values
- Implement validation where needed
- Format values consistently
- Document field purposes
- Review fields periodically
User Experience
- Group related fields
- Order fields logically
- Use appropriate keyboard types
- Show examples in helper text
- Make common fields easily accessible
Performance
- Don’t create excessive fields
- Index searchable fields
- Use appropriate data types
- Cache field definitions
- Optimize validation logic
Common Field Combinations
Purchase Information
Purchase Information
Condition Tracking
Condition Tracking
Technical Specifications
Technical Specifications
Troubleshooting
Validation Not Working
Validation Not Working
If field validation isn’t being enforced:
- Check that the field type is correct
- Verify validation rules in field definition
- Ensure the app is updated to latest version
- Test with explicit invalid values
- Review console logs for validation errors
Field Not Appearing
Field Not Appearing
If a custom field doesn’t show up:
- Verify field is added to the asset type definition
- Check that the asset type is assigned to the item
- Refresh the item detail view
- Ensure the field isn’t hidden by conditional logic
- Verify you have permission to view the field
Formatting Issues
Formatting Issues
If values aren’t formatting correctly:
- Confirm the field type matches the data
- Check regional settings (decimal separators)
- Verify the formatting function is being called
- Test with standard format inputs
- Clear cached field definitions
Next Steps
Asset Types
Configure asset types with custom fields
Templates
Use templates with pre-defined custom fields
Import Data
Import items with custom field values
Reports
Generate reports using custom field data
