Cancel and Save button in survey questionnaire

johnney
Kilo Contributor

Good Day,

Is it possible to disable the Save button and change the redirect link of the Cancel button?
save and cancel.PNG

1 ACCEPTED SOLUTION

Mrinmoy Koley
Kilo Expert

It calls an UI page "assessment_take2".



You can modify and comment out respective button tags.



Thanks,


Mrinmoy


View solution in original post

16 REPLIES 16

Hello @Phonsie Hevey1 ,

Could you please tell me what is the name of 'Widgets' ? and also can we do that by instance options ?

This is no longer done with widgets...  It is better to do with the CSS

Madhusudan6
Tera Contributor

Hi,

Is it possible to add save button for each category of survey.

For example

Survey has 3 categories and each category can have 5 questions. Can we add save button for each category.

John Johnson
Kilo Sage

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...   

JohnJohnson_0-1714676670682.png

 

 

Hello @John Johnson ,

Thanks for your comments. I have also implemented the same.
But I have observed that for 'save' and 'cancel' button have the same class. If we call that class name in CSS then both button would be effected for same logic. As well as If we changes globally this will effect for all surveys for different applications. 
Could we implement this for separate application/module like just for 'ITSM' which doesn't effect 'HRSD' surveys.

Kind Regards,
Atanu Maity