Survey - Set Default value of the Survey question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hello,
There is a requirement related to a survey. I need to auto-populate the default value(dynamic) of one of the survey questions when it loads.
Detailed requirement: We have created a UI action that opens a survey form when clicked. Currently, the survey questions appear blank. One of the survey questions is called "Serial Number." We want the value of this "Serial Number" question to be auto populated from the form where the UI action was triggered.
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago - last edited a month ago
you can use after insert business rule on assessment_instance table and populate the survey question with the task number or query that task and get serial number
see this link and enhance your logic
populating task details on survey form
Steps on high level
1) query asmt_assessment_instance_question with the asmt_assessment_instance field as your current Assessment instance
2) search for the correct survey question and update the Value field in it
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader