Automated Responses on Smart Assessment do not correctly populate an answer

Tamara Sylte
Tera Contributor

I'm trying to meet a requirement to automatically answer some questions in a GRC Smart Attestation for a Control. 

 

Use case 1:

 

I have a radio button question with 2 answers (Yes/No) (Question 1). Then I created another radio button question with the same options (Question 2). If Question 1 is answered Yes, then Question 2 should default to Yes. Or if Question 1 is answered No, then Question 2 should default to No. However, when attestations are generated and completed, Question 2 is always  set to No. [Note the same behavior is observed for Drop-down and Check-box questions.]

TamaraSylte_0-1745005147795.png

TamaraSylte_1-1745005187736.png

 

Use case 2:

 

A question must be answered based on a value from the Entity's underlying record. I am attempting this with a script, however nothing that I can think of to try will get the answer to populate. I can run the script independently and it fetches the value I need, but when I try to answer the radio button question using the values shown on the form, nothing happens. No error is thrown, and gs.log/gs.info don't print anything. I even tried just setting the value (not using the GlideRecord lookup etc.)

 

Has anyone succeeded in getting the Automated Responses feature to work? 

 

 

 

 

 

2 ACCEPTED SOLUTIONS

Pooja Kotagiri
ServiceNow Employee
ServiceNow Employee

Use case1: 
Under Additional Options, there is a setting called 'Set response as editable'. When this is enabled (set to true),Response automation settings are evaluated only when the assessment is triggered. If it is disabled (set to false), the Response automation conditions are re-evaluated every time a dependent question changes. This behavior was not documented previously, but we will update our documentation to include this.

View solution in original post

Pooja Kotagiri
ServiceNow Employee
ServiceNow Employee

Use case2:

To set a radio button using a script, assign the value using: result.value = <response option sys_id>

View solution in original post

4 REPLIES 4

Pooja Kotagiri
ServiceNow Employee
ServiceNow Employee

Use case1: 
Under Additional Options, there is a setting called 'Set response as editable'. When this is enabled (set to true),Response automation settings are evaluated only when the assessment is triggered. If it is disabled (set to false), the Response automation conditions are re-evaluated every time a dependent question changes. This behavior was not documented previously, but we will update our documentation to include this.

Pooja Kotagiri
ServiceNow Employee
ServiceNow Employee

Use case2:

To set a radio button using a script, assign the value using: result.value = <response option sys_id>

Hi @Pooja Kotagiri 
I have to automated the question using script i have passed the response option sys_id but not updating on the assessment?

Tamara Sylte
Tera Contributor

@Pooja Kotagiri Thanks so much for the quick answers! I am working through reconfiguring my attestation as you've indicated. So far everything is working with the first use case! Appreciate the input very much!