Disabling the Submit / Order Now button in Service portal of the Catalog item

Navyaa
Tera Expert

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

5 REPLIES 5

VigneshMC
Mega Sage

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