How to auto populate survey first question in serviceportal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2020 01:17 AM
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.
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.
Let me know if this is feasible, If yes let me know how we can achieve this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2020 04:39 AM
No, can not be done. Scripted answers are limited to these types:
- Duration
- Number
- Percentage
You can try and make it work, but not sure it will:
I tried manipulating the answers with a Business rule. That corrupted the whole Survey.. so no luck there
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2020 06:38 AM
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.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2020 04:27 AM
Hi,
Could u please help me with the script to update the value of the corresponding question in the relevant assessment instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2020 06:08 AM
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.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/