- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 10:40 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 11:44 PM
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';
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 11:22 PM
Hello,
Following thread will be useful for you
https://community.servicenow.com/community?id=community_question&sys_id=8b5fb2a9db58dbc01dcaf3231f961949
Regards,
Vaishnavi Lathkar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 11:58 PM
Hello,
Just use the below in your client script:-
$('submit_button').hide();
Please mark correct/helpful based on impact.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2022 01:35 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader