Willem
Tera Sage

No, can not be done. Scripted answers are limited to these types:

  • Duration
  • Number
  • Percentage

https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/administer/assessments/concept/c...

You can try and make it work, but not sure it will:

find_real_file.png

 

I tried manipulating the answers with a Business rule. That corrupted the whole Survey.. so no luck there

Slava Savitsky
Giga Sage

Have the hyperlinks behind your emoji icons point to a custom UI Page that accepts a parameter indicating which icon was clicked. In the code of the UI Page, update the value of the corresponding question(s) in the relevant assessment instance and then redirect to the assessment page. When the assessment page loads, it should automatically identify that some questions already have answers in the database and preset them on the form.

Not applicable

Hi,

 

  Could u please help me with the script to update the value of the corresponding question in the relevant assessment instance.

All you need is use a GlideRecord query to get the record you want to update, set the necessary value and save it. Documentation for the GlideRecord API is available here.