Hide Cancel and Save buttons on Service Portal customer survey

richard38
Tera Guru

Hello, I'm new to Service Portal development and I am looking to remove the Cancel and Save buttons from the survey. I've modified assessment_take2 to hide these and it works from the standard interface side. When the survey is opened from the Service Portal side the buttons remain.

 

thank you

1 ACCEPTED SOLUTION

Simon Rudd
Tera Contributor

Hi richcab,

I had the same issue and have a solution:

The name of the widget you need is called 'take survey'. Inside the widget, there is a related list called 'Angular Providers'. Within here, there is 'spSurveyForm' which is where you will find the buttons. (the save button is around line 70) You just need to comment out the line.

Let me know if this works for you.

 

View solution in original post

17 REPLIES 17

No its not working Sir

Have you found the answer can you help me.

Have you find the solution?

The solution would be to go to the survey that you are wanting to modify..  hold ctrl on keyboard and right click the survey header...  then click on 'open in page editor'...

now, scroll down to the CSS section, and input this 

here is the code 

 

button.btn-default.hidden-xs.asmt-margin-r-md.ng-binding.ng-scope {
visibility: hidden;
}

 

 

remember to save at the botton of the page...   next, try the survey...  it the save button is still there, 

make sure you are modifying the correct one..  This link should get you there

yourinstance.service-now.com/sp_config?id=page_edit&p=take_assessment&table=sp_page&sys_id=a5855835c...

you will have to change 'yourinstance' to your actual instance in the link...   

a_save_button2.png

 

richard38
Tera Guru

Thanks simon, this would work. I did this at the Page-level so as not to affect the widget so if I do need it in the future I can still utilize it.

I added this to 'Page Specific CSS':

 

button.btn-default{

visibility: hidden;

}