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
Not applicable

its still same .

Community Alums
Not applicable
 

I can still see &colon in the latest screenshot, can you remove that and only keep ":".

Community Alums
Not applicable

javascript: if (current.variables.group == '3a773f22976c8e50028cfa871153af6d') {"sys_id!=634212eb97b14214028cfa871153af7a"; } else { "active=true"; }

 

tried,still visible

I would suggest you simply call a Script and include in the ref qualifier like below.

 

Ref Qual - 

 

 

 

javascript:new CustomGroupQualifier().getRefQual(current)

 

Script include - 

 

 

var CustomGroupQualifier = Class.create();
CustomGroupQualifier.prototype = {
    initialize: function() {},

    getRefQual: function(current) {
        if (current.variables.group == '3a773f22976c8e50028cfa871153af6d') {
            return 'sys_id!=634212eb97b14214028cfa871153af7a';
        } else {
            return 'active=true';
        }
    },

    type: 'CustomGroupQualifier'
};

 

 

 

Let me know if it helps.