You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/customization/custom-fields.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ NetBox supports limited custom validation for custom field values. Following are
60
60
61
61
### Custom Selection Fields
62
62
63
-
Each custom selection field must have at least two choices. These are specified as a comma-separated list. Choices appear in forms in the order they are listed. Note that choice values are saved exactly as they appear, so it's best to avoid superfluous punctuation or symbols where possible.
63
+
Each custom selection field must designate a [choice set](../models/extras/customfieldchoiceset.md) containing at least two choices. These are specified as a comma-separated list.
64
64
65
65
If a default value is specified for a selection field, it must exactly match one of the provided choices. The value of a multiple selection field will always return a list, even if only one value is selected.
Copy file name to clipboardExpand all lines: docs/models/extras/customfield.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -79,9 +79,9 @@ Controls how and whether the custom field is displayed within the NetBox user in
79
79
80
80
The default value to populate for the custom field when creating new objects (optional). This value must be expressed as JSON. If this is a choice or multi-choice field, this must be one of the available choices.
81
81
82
-
### Choices
82
+
### Choice Set
83
83
84
-
For choice and multi-choice custom fields only. A comma-delimited list of the available choices.
84
+
For selection and multi-select custom fields only, this is the [set of choices](./customfieldchoiceset.md) which are valid for the field.
Single- and multi-selection [custom fields documentation](../../customization/custom-fields.md) must define a set of valid choices from which the user may choose when defining the field value. These choices are defined as sets that may be reused among multiple custom fields.
4
+
5
+
## Fields
6
+
7
+
### Name
8
+
9
+
The human-friendly name of the choice set.
10
+
11
+
### Extra Choices
12
+
13
+
The list of valid choices, entered as a comma-separated list.
14
+
15
+
### Order Alphabetically
16
+
17
+
If enabled, the choices list will be automatically ordered alphabetically. If disabled, choices will appear in the order in which they were defined.
0 commit comments