How to Hide " Order Now " . button for a one catalog item . Order now shouldn't visible for on item from Service portal

Sadashiva Das1
Tera Contributor

How to Hide " Order Now " . button for a one catalog item  . Order now shouldn't visible for on item  from  Service portal 

15 REPLIES 15

Anil Shewale
Mega Guru

HI Sadashiv,

 

Go through the following code.

write a onload catalog client script :
UI type : All

function onLoad()

 

{

if(g_user.hasRole('your_role'))

    document.getElementById('oi_order_now_button').style.display='none';

}

 

If it help mark helpful or correct 

Thanks and regards

Anil

Ankur Bawiskar
Tera Patron

Hi,

Any update on this?
Can you mark answer as ✅ correct, 👍 helpful if you were able to achieve the requirement. This enables other members to learn from this thread.

Regards
Ankur

Ankur Bawiskar
Tera Patron

@Sadashiva Das 

Hope you are doing good.

Let me know if that answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

If not, please let us know if you need some more assistance.

Regards
Ankur

Service_RNow
Mega Sage

HI,

To remove the 'Order Now' button from a catalog item you must set 'Use Cart Layout' to false and 'No Order Now' to true. This will remove 'Order Now' from that specific catalog item.

How to remove/Hide "Order Now" button from one of the "Service Portal" item

follow thread it will be helpful

Mark my ANSWER as CORRECT / HELPFUL if it served your purpose.

Purna1
Giga Expert

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0744898