Manage model inventory fields
Create and edit the fields that appear on all models in your model inventory. Choose from an array of field types with different properties and use cases.
Prerequisites
Add or edit inventory fields
In the left sidebar, click Settings.
Under Workspace Settings, select Model Inventory Fields. Here you can edit existing inventory fields, or add a new one:
- To add a new field, click Add New Field.
- To edit an existing field, select Edit under the Actions column for the desired field.
Fields require a type,2 a name, and a description.
You can also choose to indicate that a field is required on registration.
When you are satisfied with the setup of your field, click Save.
Inventory field types
- Single Line Text
- Simple text value.
- Attachments
- Upload supporting files for your model.3 Files must be less than 50 MB each in size.
- Long Text
- Toggle Enable rich text formatting to create a template using the rich text editor.
- Single Select
- Click Add Option to define a list of options.
- Multiple Select
- Click Add Option to define a list of options.
- Checkbox
-
A
true
/false
value set by a toggle. - Number
- Text value in valid number format. Number display (comma, fullstop, etc.) is determined by your browser’s locale. Select a number type:
- Simple — Define the decimal places that the number should be displayed up to and any large number abbreviations.
- Currency — Define the currency you would like the field to display in, as well as the decimal places that the number should be displayed up to and any large number abbreviations.
- URL
- Text value in valid URL format.
- Date
-
Date value in
yyyy-mm-dd
format. - Date Time
-
Date value in
yyyy-mm-dd, 24hr
format. -
Text value in valid email (
user@domain.com
) format. - User
-
- Select list pre-populated with users from your User Directory.4
- Toggle allow linking to multiple records on to allow multi-selection of users.
- Calculation
-
Define a
formula(params)
function that automatically calculates and returns a value based on the params dictionary, which includes selected custom field keys retrieved from your other inventory model fields.- Click in front of the inventory field to allow your formula access to the field’s values.
- Replace the demonstration formula with your own in the code box provided.
- Enter in sample values in the testing area then click Test Formula to validate your formula.
For example, say you have numeric model inventory fields of materiality
and complexity
, where a larger value indicates a lower risk:
def formula(params):
# High Risk: If materiality is high risk, return high risk regardless of complexity
if params.materiality == "High Risk":
return "High Risk"
# Medium Risk: If materiality is low risk but complexity is high risk, return medium risk
if params.materiality == "Low Risk" and params.complexity == "High Risk":
return "Medium Risk"
# Low Risk: Both materiality and complexity are low risk
return "Low Risk"
Delete inventory fields
In the left sidebar, click Settings.
Under Workspace Settings, select Model Inventory Fields.
Select Edit under the Actions column for the field you’d like to delete.
Click Delete.
After you confirm, the field will be removed.