Remove "Submit" button from the record producer.

miyu
Tera Guru

Is it possible to delete the Submit button from the Record Producer?

1 ACCEPTED SOLUTION

Forgot to say, the submit button will still be visible on the portal. To hide in Service Portal, use the following onLoad script.

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

View solution in original post

7 REPLIES 7

Vaishnavi Lathk
Mega Sage
Mega Sage

Hello,

Following thread will be useful for you

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

Regards,

Vaishnavi Lathkar

Saurav11
Kilo Patron
Kilo Patron

Hello,

Just use the below in your client script:-

$('submit_button').hide();

Please mark correct/helpful based on impact.

Thanks.

Ankur Bawiskar
Tera Patron
Tera Patron

@miyu 

Can you explain the business requirement here?

If submit button is removed then why the record producer would be used/shown to user?

Regards
Ankur

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