How to remove the Savbe button from Surveys and Assessments widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2025 08:23 AM
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
How do I do that?
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2025 09:24 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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