Ashish Narwal
Kilo Sage

Hi,

If this is a submit button that would be seen from a Record Producer or Catalog Item, you could disable the Submit button using an onSubmit Catalog Client Script in the Record Producer/Catalog Item.

Ensure that the onSubmit Catalog Client Script has a UI Type of "Both or only Service Portal", add in your conditional criteria for when you would want to disable the Submit button, and end that conditional criteria with "return false;" For instance:

function onSubmit() {

 if (g_form.getValue('subcategory') == 'DisableSubmit') {

             var message = '';

              message = message + 'Submit is disabled for the specific subcategory' + '\n' + '\n';

              alert(message);

              return false;

      }

}

 

Mark helpful/correct if that solves your issue.

Thanks,

Ashish