The CreatorCon Call for Content is officially open! Get started here.

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

Hitoshi Ozawa
Giga Sage
Giga Sage

Need 2 client scripts.

1. onLoad: (hide "Submit" button)

Need to uncheck "Isolate script":

find_real_file.png

function onLoad() {
    document.getElementById("submit_button").style.display = 'none';
}

2. onSubmit: (disable submit)

function onSubmit() {
return false;
}

 

Example record producer page without the "Submit" button.

find_real_file.png

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';
	}
}

Tried but still showing Submit button on Portal, throwing a Java Script Error