Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Making a Script-calculated Risk Assessment Metric Read-Only

Marisol Arauz
Tera Contributor

We have implemented a Risk Assessment for Change Management where one of the metrics is populated via a Script. This script automatically retrieves data from the CMDB to determine the answer.
However, when the Risk Assessment pop-up (modal) appears, the value retrieved from the CMDB is displayed in an editable field. To ensure data integrity and prevent manual overrides by users, we need this specific metric to be Read-Only within the assessment questionnaire interface, while still allowing the script to populate its value.

1 REPLY 1

Henri1
Tera Expert

@Marisol Arauz Don't know if you found the answer already but I think you are looking for this selection:

Henri1_0-1790149493668.png

 

So go to your "question" (asmt_metric record) and select from the General tab

 

Ask question = Only if script provides no default answer