Smart Assessment questions suppression based on Scope Item attributes.

skahare
Tera Contributor

Hello all,

 

Could you confirm whether we can suppress Smart Assessment questions based on scope item attributes? If Yes then How?

For example, if the Business Application attribute Artificial Intelligence is set to No, we would like to suppress the AI-related questions.

 

If this is not supported in Smart Assessment, can we achieve the same outcome in Classic Assessment?

 

Thanks in advance.

 

Regards,

Shrikant

2 REPLIES 2

Vikram Reddy
Tera Guru

Hey @skahare,

 

This comes up a lot once teams start scoring apps against AI/cloud/data-residency style attributes: the platform's two assessment engines handle "hide this question based on something else" very differently, and the difference actually decides which one you should use here.

Smart Assessment only gives you native conditional visibility at the question level, and that condition can only look at the answer to an earlier question in the same assessment. It cannot natively reference a field on the assessable record itself (your Business Application's Artificial Intelligence attribute). If you want that, you have to build it yourself: an onChange client script on the assessment form that fires a GlideAjax call to a Script Include, which queries the Business Application record server-side and returns true or false, then the client script calls g_form.setDisplay() to hide the question. Doable, but it's custom, not configuration.

Classic Assessment is actually the better fit for what you're describing, because it supports this natively. A few things to check:

  • Metric Category has a Condition field, a standard condition builder that evaluates against the assessable record's table.
  • Metric Type also carries a Condition, and ServiceNow's own guidance is to mirror the same condition here as on the category so the Assessable Records related list actually populates.
  • Set the condition to something like Artificial Intelligence is Yes on the Business Application table, so that category (and its AI-related metrics) simply never gets instantiated when the attribute is No.
  • No scripting required, this is pure condition-builder configuration on the metric definitions themselves.

So: not supported out of the box in Smart Assessment for record-attribute-driven suppression, but straightforward in Classic Assessment via the Metric Type/Category Condition field.

One caveat if you do go the custom-script route in Smart Assessment: questions hidden by conditional visibility still render as "Skipped" in the completed assessment, and there's currently no supported way to suppress that label, so plan your reporting/UX around that.

References

 

Thank you,
Vikram Karety
Octigo Solutions INC

skahare
Tera Contributor

Hello @Vikram Reddy ,

Thank you for your detailed response.

I appreciate your suggestions. Since I'm planning to use Smart Assessment without any customizations, I'll explore some alternative approaches to achieve the required functionality.

 

Regards,

Shrikant