OptionalactiveWhether the metric is active. DB: active. Default true.
OptionaladditionalLabel for the additional-information field. DB: add_info_label (translated_text, max 255). Default 'Additional Information'.
OptionalallowAllow free-text additional information alongside the answer. DB: allow_add_info. Default false.
OptionalallowAllow the assessor to mark the metric "not applicable". DB: allow_not_applicable. Default false.
OptionalconditionEncoded query controlling when the metric applies. DB: condition (conditions, max 1000).
OptionalcondWhen the dependent question is asked. DB: cond_question. Default 'always'.
OptionalcontextVirtual Agent context for chat-based surveys. DB: context (reference sys_cs_virtual_agent_context).
OptionaldefaultSource-record field used to pre-populate the default answer. DB: default_value_field (field_name).
OptionaldefinitionsAnswer options / scale points for the metric (asmt_metric_definition), keyed by
the option's stored value. Each entry is a display label (shorthand) or a
MetricDefinitionConfig object. Applicable to choice, likertScale,
numericScale, imageScale, multipleSelection and ranking answer types. Coalesced
on value within this metric (the metric FK is wired automatically), so no
$id is needed.
The asmt_metric_definition.value column is numeric on the platform, so keys
must be integer strings. Non-integer keys produce a build diagnostic.
definitions: {
'1': 'Dissatisfied',
'2': 'Neutral',
'3': { label: 'Satisfied', order: 300 },
}
OptionaldependentDependent plugin value. DB: plugin.
OptionaldependsConditional question: the sibling metric this one depends on. Reference it with
Now.ref('asmt_metric', '<id-or-sys_id>'), a Record<'asmt_metric'>, or a raw
sys_id string; the plugin resolves it to the target metric's sys_id.
DB: depends_on (reference asmt_metric).
OptionaldescriptionHelp/description text. DB: description (translated_text, max 1000).
OptionaldetailsAdditional rich-text details. DB: details (translated_html, max 8000).
OptionaldisplayedDependent answer value(s) that reveal this metric (used with dependsOn).
DB: displayed_when (glide_list -> asmt_metric_definition). Use when the parent
(dependsOn) metric has dataType: 'choice'. Values are the integer keys from
the parent metric's definitions map.
OptionaldisplayedReveal value when the parent (dependsOn) metric has dataType: 'checkbox'. DB: displayed_when_checkbox.
OptionaldisplayedReveal value when the parent (dependsOn) metric has dataType: 'template'. DB: displayed_when_template (glide_list -> asmt_template_definition).
OptionaldisplayedReveal value when the parent (dependsOn) metric has dataType: 'yesNo'. DB: displayed_when_yesno.
OptionalfieldField script validator applied to the answer. DB: field_validation (reference sys_cs_field_script_validator).
OptionalhideHide the metric label in the rendered survey. DB: hide_label. Default false.
OptionalmandatoryWhether an answer is required. DB: mandatory. Default false.
OptionalmaximumUse the maximum value as the normalization input. DB: maximum_normalization_input. Default false.
OptionalmaxMaximum weight used when normalizing scores
OptionalmethodCollection method for the metric. DB: method. Default 'assessment'.
Question label shown to the assessor. DB: name (string, max 255). Mandatory.
OptionalorderDisplay order within the category (lower sorts first). DB: order (integer). Mandatory. Default 100.
Rich-text question body. DB: question (translated_text, max 512). Mandatory.
OptionalreadRender the metric as read-only. DB: read_only. Default false.
OptionalscoredWhether the metric contributes to the score. DB: scored. Default false.
OptionalscriptServer script for scripted metrics. DB: script (max 4000). Prefer Now.include('./metric.js').
OptionalsourceField the metric reads from (data-collection metrics). DB: source_field (field_name).
OptionalvalueName/value parameters for the metric. DB: value_parameters (simple_name_values, max 4000).
OptionalweightRelative weight within its category. DB: weight (decimal, max 15). Mandatory. Default 10.
Fields common to every metric, regardless of
dataType. The data-type-specific fields live on the per-type branches of MetricConfig.