Disabling the Submit / Order Now button in Service portal of the Catalog item
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2019 03:45 AM
Hi All ,
I have requirement , based on the variable value i.e Yes/ No , the Submit / Order now button should be disabled.
If the value is 'No', the button should be disabled .
Can any please help in this .
Thanks ,
Navyaa
Labels:
- Labels:
-
Service Catalog
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2019 03:03 AM
Try this as on change client script .
if (newValue=='No'){
document.getElementById('oi_order_now_button').hide();
}
else{
document.getElementById('oi_order_now_button').show();
}
I hope you are aware this involves DOM manipulation which is not recommended by servicenow