I need to hide 2 operational applications from Incident form however these are required for other

Priya Singh 2 2
Tera Contributor

Hello Team,

I have got one requirement where I need to hide 2 operational CIs from Incident form for all users however these are required for another form. 

What is the best approach to achieve this requirement in Service Now, please advise ?

 

Thanks,

XXXX

5 REPLIES 5

Mark Manders
Mega Patron

Apply the condition to the reference qualifier on the field (or, if it's a task field, apply a dictionary override for just the incident table).


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Hello Mark,

I have tried to creating a dictionary override & putting the filter under reference qualifier like below:

 

PriyaSingh22_0-1737018628541.png

But it's not working as expected.

Thanks,

PPPP

@Priya Singh 2 2 

it should be this

javascript: 'sys_idNOT INsysId1,sysId2,sysId3';  

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Pleace check Ankur's solution, because it takes all sys_ids at once.

 

And for future reference: never use 'OR' and 'IS NOT' in the same query, because that will never work:

if(x!=a OR x!=b){}
x = a -> true, because x != b

x = b -> true, because x != a

x = c -> true, because x != a (or b)

 

You should always use 'AND' because you don't want it to be 'a' AND you don't want it to be 'b'.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark