- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2023 10:40 AM - edited 11-13-2023 04:42 AM
Hi Team ,
We need to disable /hide the submit button when check box is true
Please guide me :
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2023 11:07 AM
Hi @String
You can achieve it by using Catalog Client Script on Submit.
1. Create a On submit Catalog Client script.
2. Write the script as follow.
3. When the TonerEnabled is checked you can submit the request else you will receive the alert. You can modify the alert or add info message based on your requirements
Regards,
Ashir Waheed

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2023 10:53 AM
Have you searched the community posts for this? Because this one came up in the first 4 or 5.
https://www.servicenow.com/community/itsm-forum/how-to-hide-submit-button-in-catalog-item/m-p/585354
Not sure I would recommend DOM manipulation. Is there a reason you cannot just use an onSubmit script and if the ckeckbox is selected show the user a message about why and then just return false so the form is not submitted?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2023 11:07 AM
Hi @String
You can achieve it by using Catalog Client Script on Submit.
1. Create a On submit Catalog Client script.
2. Write the script as follow.
3. When the TonerEnabled is checked you can submit the request else you will receive the alert. You can modify the alert or add info message based on your requirements
Regards,
Ashir Waheed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 09:30 AM
This script will not hide or disable Submit button rite? just alert and abort the submit action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2024 12:08 PM - edited 10-30-2024 12:10 PM
Hi,
You can also try OnLoad client script to hide submit button, here i used DOM
I tried below script
Applies to : catalog item
Type : OnLoad
Catalog item : select the catalog item you want to hide submit button
Applies on a catalog item view : True
script :
function onLoad(){
this.jQuery('button').hide();
}
Thanks