Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Widget Redirecting to 404 Instead of Survey Form in GRC Project

Ashok_Bandla
Tera Expert

Hi all,

I've created a custom assessment and survey widget as part of a GRC (Governance, Risk, and Compliance) project. The widget is designed to display all related survey records.

However, I'm encountering an issue:

When I click to open a record from the widget, I get a 404 error.

I tried modifying the URL from "ticket" to "form", and I was able to access the Survey Form.

On that form, there's a "Take Assessment" button. When I click it, I get a pop-up saying "Record Updated".

URL:
sp?id=ticket&table=asmt_assessment_instance&sys_id=4abe95fe9755a25014427666f053af11
sp?id=form&table=asmt_assessment_instance&sys_id=4abe95fe9755a25014427666f053af11

My Requirement:
When a user clicks on a survey record from the widget, it should redirect directly to the Survey Form, not a 404 page.

Questions:
Is there a proper way to construct the URL or use navigation APIs to ensure redirection to the correct survey form?

Has anyone faced a similar issue in a custom widget?

I have attached some screenshots.

Any suggestions, best practices, or guidance would be much appreciated.

Thanks in advance!
Ashok

Ashok_Bandla_0-1747231650265.png

 

Ashok_Bandla_1-1747231716737.png

 

 

Ashok_Bandla_2-1747231752476.png

 



1 REPLY 1

KalpeshBhavsar
Tera Contributor

Hello @Ashok_Bandla , did you check page route map table where you will find a record of assessment if its active true, Please deactivete and test the result again. no need to construct a URL.

 

Please refer the support article, https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0855288

 

Thanks,

Kalpesh