How to check the survey you have responded to

SotaT
Tera Contributor

When I answer a survey on the /supplier portal, the survey I answered disappears. However, I would like to be able to check the contents of the answered survey by the person who answered it. Is there any way to do this? Of course, I know that I can see it if I go to the back side.

4 REPLIES 4

MC30
Tera Guru

Hi Sota,

By default the behaviour is to show only incomplete surveys. That's the reason the answered survey's disappear.

However you can allow users to view their answered surveys in the supplier portal by customizing the view or creating a page/widget that shows completed surveys for the logged-in user.

 

* What’s Happening by Default
ServiceNow’s out-of-box survey functionality hides completed surveys from the portal view. This is controlled by the logic in the widgets (like Take Survey or My Assessments) that filter for:

 

state != 'complete'

 

You can Show Answered surveys to the person who answered them via 2 options. You can choose the feasible one:

 

Option 1: Add a Custom Page to View Completed Surveys
Steps:
1 Create a new Portal Page (e.g., /my_surveys) in Service Portal Designer.
2 Add a List widget or create a custom widget.
3 Source: asmt_assessment_instance table.
4 Filter:
â—¦ user = javascript:gs.getUserID()
â—¦ state = complete (or include all if you want history of in-progress + complete)
5 Optionally, link to a detailed survey response view.

 

Option 2: Customize or Clone the Survey Widget
If your portal is using the Take Survey or My Assessments widget:
1 Clone the widget.
2 Modify the server script:
â—¦ Remove the filter that says:

 

gr.addQuery ('state', '!=', 'complete');

 

â—¦ OR add a separate section to show state == complete.
In the HTML template, render the completed surveys as read-only (optional). 


 Else
to show the actual answers, query:
• Table: asmt_assessment_instance_question
• Filter: instance = [user’s completed assessment_instance]
• Display: question_text, answer_text
You can do this in a custom widget that shows both the survey and their submitted answers.

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Madhuri

Ankur Bawiskar
Tera Patron
Tera Patron

@SotaT 

once survey is taken end user cannot see the completed surveys

It's OOTB behavior.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@SotaT 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@SotaT 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader