The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to auto populate survey first question in serviceportal

rahulrockkk
Tera Contributor

Hi Team,

I would like to know if the below requirement is feasible or not. I raised a Hi-Ticket but SNOW confirmed its not feasible. Let me know if anyone has done below kind of requirement:

Upon resolving the incident am sending an email to end-user saying the incident is resolved and few survey emojis are embedded in the email. 

image

 

These survey emoji is an image with a hyperlink to the ServiceNow survey page. Here if the user selects one of the emoji, I wanted to auto-populate the same emoji in the ServiceNow survey page as below. Let's say the user selects the very good icon I wanted to auto-populate the same icon in the ServiceNow survey page as well.

image

 

 

Let me know if this is feasible, If yes let me know how we can achieve this.

5 REPLIES 5

Willem
Giga Sage
Giga 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.

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.