Survey stuff (smiles, increase response rate, etc)

vant
Tera Expert

Greetings Community,

I have a recent requirement to make surveys more friendly and appealing to increase response rates, and by this, one example is to add pictures (i.e. smiley faces) and possibly embed surveys in emails to send the response to ServiceNow, or have multiple picture links in emails that would pre-answer at least one question in ServiceNow, anything that would make answering any part of a survey as easy as possible.

This is what I found researching so far, feel free to correct me.

1. Embedding surveys in emails won't work to send data to ServiceNow, due to restrictions of the Outlook server of 2010+, Outlook client security prompts.

2. The Tilton smiley face update on Share won't translate onto the new Eureka upgraded survey platform because UI macros are not supported, though it continues to work on the legacy survey.

Question:

1. Has anyone successfully done a survey notification that looks like an Amazon feedback survey or a Square credit card charge or Uber survey with smiley faces that might pre-answer at least one question on the survey, or anything close to that sort? Is it even possible within ServiceNow?

2. Or if no answer for #1, has anyone found a clever way to increase user's response rate to the surveys by making them click on the survey link, instead of offering them a chance at winning something?

Thanks!

44 REPLIES 44

Sorry for the late reply. I just noticed there have been a few replies to my posting until today. You can put this line "" closer to the top of your UI page since you will need this value as soon as the page is loaded. As for the line "", you can put it anywhere inside the tag. It is hidden so it is not visible to the client. It can be anywhere between the form tag. Again, I apologize for the late reply. You probably figured this out already 🙂


Hey Samuel,



I tried your way to auto-capture the response , but unfortunately it is not working .


find_real_file.png



It got landed to assessment.do page , where again I had to enter my response manually .


Your setup maybe different from mine. I have a hidden field called "overall_grade" to store the selected value from the notification. You may not have that field or call it something different. You have to first make sure that field is not empty. If the field contains a value, you will then have to check the ID of your radio button. You can open your survey in Chrome or FireFox, right click on the radio button and select "Inspect". This should give your the id of the radio button and the value of each. Then you can set the value of the radio button accordingly. I am not sure if this helps. If not, feel free to post your code here and I can take a look.


Hi Samuel,


Thanks for your Survey response, it was a great post. Would you mind sharing a little bit of information? We have the same requirement and i am done with the Notification and Survey part. I am very new to SNOW scripting, would you mind providing the code.



Also you mentioned another 2 steps. 1st one to get the parameter and 2nd one to store the value. May i know where to define these 2 steps exactly? Please never mind, I am very new to scripting world.




Any help is greatly appreciable.



Thanks


Nani


Hi Nani, If your first question is numeric instead of radio button, in my case, all you have to do is to find the ID of your numeric field in the survey. As I just replied to another post above. Open up your form in Chrome or FireFox, right click on the numeric field, select "Inspect", if should show you the HTML code of your textbox and its ID. You will just use that ID to get the selected value, something like document.getElementById('XX_numeric_field_id_XX').value = [YOUR_SELECTED_VALUE]; The 2 steps are basically these two lines in the UI page: 1. Get the sysparm_grade parameter using Jelly. Something like this:   2. create a hidden textbox to store the value, like this inside the <g:ui_form> tag: The first line can be close to the top of the form or anywhere before your <g:ui_form> tag The second line will be inside of your <g:ui_form>. Since it is hidden, it doesn't quite matter where it is. As long as your form is well organized. I tend to put it directly under the <g:ui_form> tag so it is easy to find. The script for setting the value to a field is not ServiceNow specific. You can google something like `Javascript set textbox value` or `javascript set radio button value`. The code you find can be used here. The key is to find the ID of the textbox. radio button, echeckbox, etc. I hope it helps. Sam