Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to hide submit button in Service Portal

NewBee
Kilo Contributor

Can someone help on how to hide submit button in Service Portal ?

23 REPLIES 23

@NewBee 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Thanks!
Ankur

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi, good afternoon Folks,

Can someone help on how to hide Save(Ctrl+s) button in Preview "I"-con in Service Portal?

PFA.

This script worked, thank you...  Much appreciated.

 

function onLoad() {

if(window == null){
// for portal
var z = this.document.getElementsByClassName("btn btn-primary btn-block ng-binding ng-scope");
z[0].style.display = 'none';
}else{
// for native
document.getElementById("submit_button").style.display = 'none';
}
}

How to hide on now mobile (mobile terminal)

 

Kajal Goti
Mega Guru

Hi @NewBee 

 

Please refer below links, accommodate as per you requirement

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

 

https://servicenowguru.com/scripting/client-scripts-scripting/removing-form-buttons/

 

 

Please mark as correct/helpful, If you find any help