Remove/disable/hide record producer Submit button.

trupti3
Kilo Explorer

Hi ,

Is there any way to remove/hide or disable 'Submit ' button on a record producer using catalog client script onLoad/onChange and also preferably not doing DOM manipulation.

23 REPLIES 23

This does work on portal. is there other way to do the same on portal

@shail.phillip 

to make it work for portal use this

var z = this.document.getElementsByClassName("btn btn-primary btn-block ng-binding ng-scope");

z[0].style.display = 'none';

Regards
Ankur

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

@Ankur Bawiskar,

It looks weird on the portal. And even though I selected to apply the catalog client script on mobile as well, but Submit button is still shown on mobile appfind_real_file.png

Community Alums
Not applicable

@Ankur Bawiskar Hi Ankur,

If i use the same code in on-change client script im getting javascript console error. (Isolate checkbox is false")

"Unhandled exception in GlideAjax."

Requirement - I need to hide submit button based on field validation.

For that i have written on-change client script which will use glideajax to get some server details. Based on the return value to the client, im hiding the submit button.

Do you have any thoughts in this? Im getting 

Unhandled exception in GlideAjax error
 
-Sirraj

Hi,

what type of script you are using for GlideAjax?

please raise a new thread for this and tag me.

This is an older thread and will be difficult to keep track of

Regards
Ankur

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