Need to remove back button only for incident form

amanimogili
Kilo Contributor

I have a requirement asking for hiding the back button on incident form. We want to restrict this only to Incident form. Please suggest if there is any possibility.

find_real_file.png

Thanks in Advance:)

1 ACCEPTED SOLUTION

Mihir Mohanta
Kilo Sage

Write an on load client script in the incident table.Script:



function onLoad() {


    //Type appropriate comment here, and begin script below


  document.getElementsByClassName("btn btn-default icon-chevron-left navbar-btn")[0].style.display="none";


}




Thanks,


Mihir


View solution in original post

4 REPLIES 4

abilash_017
Mega Guru

Hi,



Follow this thread.


https://community.servicenow.com/thread/218591



Thanks.


Mihir Mohanta
Kilo Sage

Write an on load client script in the incident table.Script:



function onLoad() {


    //Type appropriate comment here, and begin script below


  document.getElementsByClassName("btn btn-default icon-chevron-left navbar-btn")[0].style.display="none";


}




Thanks,


Mihir


the below code was not working in madrid version. please help

Hi Mihir,

 

This code was working fine for London,but this is not working for Madrid.

 

Could you please help.

Will there be any change for the button ID with madrid version?

Regards,

Sanitha