We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to remove the Savbe button from Surveys and Assessments widget

ritaaudi
Tera Contributor

Hi:
I need to remove the Save button from the Surveys and Assessments portal form at:
https://instance.service-now.com/sp?id=take_survey&instance_id=1cfb6eeb474ae650661a527a516d43a4

ritaaudi_0-1751556204447.png

How do I do that?

Thank you!

2 REPLIES 2

AyushKumarM
Giga Guru

Hello,

This is an OOB widget so you have to clone this widget and then edit the new widget. In the server script replace the line "if (actionTypes.indexOf('save') != -1) data.assessment.hide_save = true;" with "data.assessment.hide_save = true;". This will remove save button from every survey which will use your widget. Please mark this helpful.

Thank you.

rudipohjaniemi
Tera Contributor

If you are in control of the URL and don't need it to be bulletproof (i.e. the end user can change the URL manually), then you can do it by passing URL parameters like so:

?id=take_assessment&instance_id=xyz&hide_actions=save,cancel