how to disable back arrow in a form

Preethi5
Tera Expert

hi Team,

Is it possible to disable/hide the back arrow button (marked in red) in a form.

find_real_file.png 

Appreciate your help in this.

Regards,

Preethi.

 

1 ACCEPTED SOLUTION

Geetanjali Khy2
Mega Guru

Hi Preethi,

It is possible to disable back button on the form. For that, run the below Client Script:

function onLoad()

{

 

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

}

I have applied above script on Employee table.

Now, you can see there is no back button on the form.

find_real_file.png

 

Please check if it is helpful.

View solution in original post

10 REPLIES 10

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

please use the solution described in the thread below, it should work fine:

https://community.servicenow.com/community?id=community_question&sys_id=06fa87addb5cdbc01dcaf3231f96...

If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers
Alberto

Hi Alberto,

 

This solution is not working on Utah version. Can you help?

Geetanjali Khy2
Mega Guru

Hi Preethi,

It is possible to disable back button on the form. For that, run the below Client Script:

function onLoad()

{

 

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

}

I have applied above script on Employee table.

Now, you can see there is no back button on the form.

find_real_file.png

 

Please check if it is helpful.

Hi Geethanjali,

 

Thanks for the quick reply.

 

But the below code is not working for me.

 

I have applied the below onLoad client script in our custom table. Still back arrow is displaying.

 Any suggestions?

Regards,

Preeti.