hide global option from region variable lookup selet box when le group is data privacy

shubhamverm3478
Tera Contributor

Hi,

I want to hide global option under region look up select box variable when le group is data privacy.

how can I achieve this

35 REPLIES 35

Aniket Chavan
Tera Sage
Tera Sage

Hello @shubhamverm3478 & @Community Alums ,

 

I suggest trying the following reference qualifier for your use case:

 

javascript: if (current.variables.group == '457aa799db49d740d27a00b5ca9619de') { "sys_id!=e37c2dfb1be49ad47b03ea8a234bcbfd"; } else { "active=true"; }

 

AniketChavan_0-1728980210383.png

 

This should conditionally hide the Global option in the region lookup select box when the group variable is set to Data Privacy.


Note:
Please replace the sys_id values with the corresponding ones from your instance. Specifically, update the group sys_id and the region sys_id for the Global option, as they may differ in your system.

Let me know if you have any questions or if this doesn’t work as expected.

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.


Regards,
Aniket

Appreciate your answer but isn't it the same approach I suggested? 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Community Alums
Not applicable

Its still visible.

Hello @Community Alums ,

 

Please share few screenshots of both variables, and let's see what's missing, because I have tested the same functionality from my side and it's working as expected.

Community Alums
Not applicable

Yes Please,