Scripts possibility in Smart Assessment Engine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2025 01:30 PM - edited 08-11-2025 01:30 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
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.
Where you can preset values based on condition.
If you further want to perform complex operations you can use the Automation Section within the template to call flow based on question response.
Thanks,
Vinod M
If it’s helpful, hit Like 👍 — if it solves, mark Accepted ✅!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Hi @guthikondav ,
I am also looking for the same functionality. Please let me know if you find any way to achieve this.