How to set a default value of survey question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2023 12:25 PM
Hi All,
I have a requirement where if user do not attempt a survey question a default response/answer should get selected.
So, I have 5 questions on the survey and each one is having below answer.
Very Satisfied - 5, Satisfied - 4, Neutral - 3, Unsatisfied - 2, Very Unsatisfied - 1, N/A - 0
Now, I wanted to send response as N/A in case survey respondent chooses to not answer any one the question.
Note: Survey questions are not mandatory
Is there a way to achieve this OOB or may be using script?
Thanks!
- 1,484 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2023 01:12 PM
This is a very common question. You used to be able to do this in Legacy Surveys but it has changed. ServiceNow's response is:
'The survey designer does not have any field known as "set default value". One of the reason we are not supporting is , we send survey to get the user's feedback and populating default value in the question is not useful . '
So if you design a survey then you really need to make most quotations mandatory. If you do not want a question to be mandatory, you can always write a Business Rule that checks when a new survey question is answered and adjusts the value as require to default if no answer was given. Although as ServiceNow say putting defaults in is a little suspect on a survey.
See this which may also be helpful: https://www.servicenow.com/community/developer-forum/default-value-in-survey-design/m-p/2256007
If helpful please mark as Helpful/Correct
Regards
Paul