Is it possible to remove the 'Save' button from the bottom of surveys? If so, how?

brocoppler
ServiceNow Employee
ServiceNow Employee

At the bottom of surveys there is 'Submit', 'Save', and 'Cancel' and I want to remove the 'Save' button.

Thanks!

1 ACCEPTED SOLUTION

It will depend on what version of survey you use. If you look around your "Survey Instance" page, you will stumble across something to the effect of "Take Survey" or "View Public URL".



There are quite a few places. I just double checked ours, and "survey.do" was a copy we made for a custom one. My apologies, your instance would not have that one!




The one that comes OOB with Assessments is "assessment_take2.do" and for Legacy Surveys is "survey_take.do" (I just double checked). If you are really stuck, you could search the HTML for all the UI Pages to return anything that contains "survey".


View solution in original post

8 REPLIES 8

Update:  Two places to comment out are around 392 and 554.  This removes it from the asessment_take2 survey form in the nav bar of the form and the bottom. 

in  NEW YORK 

find_real_file.png

Laurie Marlowe1
Kilo Sage

Hi All,



I tried modifying the UI Page and it didn't work in Helsinki.   It looks like there is other code that would need to be commented out (if I'm reading it correctly) to get rid of the Save buton.   I also investigated an ACL to hide the button, but I don't think that is possible either because the Save button is not created as a UI Action; it is created in the HTML of the UI Page.   Does this sound right?   I'm doing a "just checking" to see if I'm on the right path.



Thanks,



Laurie


Maybe you already know this but in the HTML code around line 450, the buttons ('submit', 'save', 'cancel' and 'close') are described there a second time. Perhaps you can also look into the block directly above it which is also about how the buttons should work (as they are mentioned again around line 430). The difference seems to be about the signature field and whether it is filled in or not. It would seem that a difference can be made in handling the buttons this way.



What I on the other hand can't seem to figure out is how to redirect the user back to the previous page when the user presses 'submit' or 'save' for example.


I have the same Question, How do I redirect users to a specific page once the user submits or cancels the Survey.