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

@Community Alums 

Please change field names and values accordingly.

The query will be as per your requirement, Which records you want to show if group is not 

javascript: if (current.variables.u_le_groups_1== 'group value') "name!=Global";else "active=true";

syntax :

javascript: if (current.variables.fieldname== 'fieldvalue') "add your query";else "add else query";

 


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

There is an issue in community portal so colon is showing wrong

Refer below screenshot for javascaript: syntax 

VoonaRohila_1-1728986103741.png

 

 


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

still visible.

@Community Alums  - You have to change the field/variable names in Refernce qualifier accordingly.

As per your screenshot, This is the variable name

 

VoonaRohila_0-1728987440095.png

 


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

javascript:if (current.variables.le_group== '3a773f22976c8e50028cfa871153af6d') "name!=global";else"";

I used this qualifier you mentioned.Issue still persists.