Scripts possibility in Smart Assessment Engine

guthikondav
Tera Contributor

Hi Community,

 

We are having a requirement that, need to create an assessments on controls table(sn_compliance_control) using smart assessment engine. I have created the templates and questions in the assessment workspace.

My query was: How we can add the script logics. for example, we can auto-populate the data on catalog form/record producer using onload client script with script include functionality.
I want to build same type of questionnaire template. when assessor(control owner) selects the control number in the reference question, need to auto-populate all the controls data, risks, owner information and other test plans on the template form.
How we can build this scripts scenario in smart assessment engine please let me know.
I am new to this smart assessment engine functionality, need your help and guidance to progress on my requirements(I know script include with form client script, but same logic how can i apply here with SAE).

Please guide me any one.
Thankyou.

6 REPLIES 6

Community Alums
Not applicable

Hello @guthikondav ,

 

You can utilize the Automate response option available within the question in the smart assessment template.

This is a configuration based method , no code recommended by ServiceNow. 

VinodKumarM2_0-1755076908571.png

 

Where you can preset values based on condition. 

VinodKumarM2_1-1755077022043.png

If you further want to perform complex operations you can use the Automation Section within the template to call flow based on question response. 

VinodKumarM2_2-1755077284405.png

 

Thanks,

Vinod M

If it’s helpful, hit Like 👍 — if it solves, mark Accepted !

 

@Community Alums  Hi Vinod, thanks for your reply.
I have checked those automation flows, response based on previous question in the assessment template. It was not fulfilling my requirements.
My requirement was, 
When i selected Control Number in the reference field of a question, I need to display all control related information like, name, description, owner, and other control information, along with that i need to auto-populate control test data, control risk id's, business applications data from various tables.

I can able to achieve this in record producer form using client callable - script include with onchange client script.
But here in smart assessment engine assessment template, how we can configure this same functionality, where we need to write the script logics. 
Please let me know.

Thankyou.

@Vinod Kumar M2  Hi Vinod, thanks for your reply.
I have checked those automation flows, response based on previous question in the assessment template. It was not fulfilling my requirements.
My requirement was, 
When i selected Control Number in the reference field of a question, I need to display all control related information like, name, description, owner, and other control information, along with that i need to auto-populate control test data, control risk id's, business applications data from various tables.

I can able to achieve this in record producer form using client callable - script include with onchange client script.
But here in smart assessment engine assessment template, how we can configure this same functionality, where we need to write the script logics. 
Please let me know.

Hi @guthikondav ,

 

I am also looking for the same functionality. Please let me know if you find any way to achieve this.