Disable submit button in catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2025 12:01 AM
I need to disable the submit button in catalog item on service portal and employee center as well. Is this possible to perform this through catalog client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2025 12:08 AM
I too have same question, whats your next step after disabling? How end users can submit the form
Regards,
Prasanna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2025 01:56 AM
Hello @Anantha27, I think you can't hide it normally without manipulating the DOM, which is not advisable. You can think of writing a simple 'On Submit' client script to stop the submission with below code.
function onSubmit() {
g_form.addErrorMessage('You cannot submit this form');
return false;
}
Regards,
Nishant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2025 02:01 AM
Hi @Anantha27,
What is the business requirement for this?
You can disable via onSubmit client script:
g_form.addErrorMessage('Invalid submission.');
return false;
return false invalidates submission. Im interested to know the usecase for this requirement if you could share?
Regards,
Ehab Pilloor