How do I hide submit button on Service Catalog for some options.

212 viewsServiceNow

How do I hide submit button on Service Catalog for some options.

Hi Team,

I have need to hide submit button so that user can’t request and no RITM can be created. I have as below and need to hide submit button when first two options are selected. First two option is just to see list view.

Please advise.

Thanks,

Answered question
0

Try this in Onsubmit catalog client script

function onSubmit() {
    //Type appropriate comment here, and begin script below
     if (g_form.getValue('what_would_you_like_to_do') == 'view_app_sw_list' || g_form.getValue('what_would_you_like_to_do') == 'view_disapp_sw_list') {
        alert('Cant submit');
        g_form.clearValue('what_would_you_like_to_do');
        return false;
    }
}

Answered question
0