How to hide Price and total field on Order status screen based on user role

Bhargava4
Mega Expert

Hi Gurus,

if you have  admin role your able to see price and total field order screen in both areas like SN and Service Portal, if not we need to hide those two fields. please post your thoughts 

Maintain cart layout not for this requirement because we need to dynamical based longed user role 

find_real_file.png

1 ACCEPTED SOLUTION

Brent Sutton
Mega Sage

Hi Bhargava,

You would probably have to clone the OOB "SC Order Status" widget to do what you are describing. I would question the value of running your own widget rather than just configuring the widget instance to hide the price and total cost.

CTRL-Right Click "SC Order Status" widget >> Select "Instance Options"

find_real_file.png

Deselect "Display Price" and "Display Total Price"

find_real_file.png

Result:

find_real_file.png

This would hide the "Display Price" and "Display Total Price" fields for everyone (including admins) but would be much more supportable long term.

Let me know if this worked for you.

Brent

View solution in original post

9 REPLIES 9

Thank you Brent. I will try this.

Thanks,

Ram chekuri 

Nice. But I notice this affects all catalogue items. How do you make it to only affect a specific catalogue item request? I have some requests where I definitely need the Total column but for some I dont

Community Alums
Not applicable

I am trying to hide the Total price column and Recurring column in the SC Order Guide widget. But not seeing these checkboxes within Instance Options. How to enable them and then uncheck them?

flsn2
Tera Expert

Hi guys does it take specific roles to be able to click on the instance options field ?

i cant click on it even as an admin

thx

Hi @flsn2, an admin will definitely have permissions to configure a widget instance. Just make sure that you're in the same application scope as the widget instance when you are making the change.