omit new condition script by roles

Leonel Sandroni
Tera Guru

Hello everyone,

 

I'm trying to hide any new buttons in the related list of a demand so I'm working with the "omit new condition" script. I have builded the next statement but it doesn't work.

 

I need to hide the "new" button in related lists if the state is '9' and role is 'it_demand_manager'.

Can you help me? It is work for states but it does not work by roles.

LeonelSandroni_0-1686918707452.png

 

3 REPLIES 3

Paul Curwen
Giga Sage

Hi, The script you have seems to be correct, I cannot see any obvious logic issue there.

 

Other things to check: 

 

1. I presume on the List Control you have Omit new button ticked on the List Control record ?

2. When testing double check the user you are using or impersonating has the 'it_demand_manager' role 

 

 

If helpful please mark as Correct/Helpful

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

Yes, I impersonated with it_demand_manager and it's the same situation, it does not work. I've even tried checking and uncheking 'omit new button' and reversing 'true' by 'false'

Anubhav24
Mega Sage
Mega Sage

I am also facing a similar issue on the related list of catalog tasks on RITM form , however for me it used to work before UTAH upgrade and new UI , it used to work on San Diego without new UI but not the condition doesnt seems to be executed for particular users . Let me know if you find the solution.