To hide an choice in reference field

Anitha H V
Giga Expert

To hide a choice from the reference filed for a particular option in the select box field

when the type select box field has the option as B . I do not want the option "Nauru" to be displayed in the reference field place.

find_real_file.png

1 ACCEPTED SOLUTION

Chetan Mahajan
Kilo Sage
Kilo Sage

Hi Anitha,

                 You have to create script include and call it from ref qual place (variable) like below

javascript: new ReferenceQualifierCheck().checkCity(current.variables.work);find_real_file.png

Create Script include as below

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

checkCity: function(option) {
gs.info("Check Option" + option);

if(option == 'b'){ // backend value of work->b
return "nameNOT LIKENauru";  // filter query from ref table
}
else{
return "nameISNOTEMPTY";
}
},
type: 'ReferenceQualifierCheck'
};

Kindly mark correct and helpful if applicable

View solution in original post

8 REPLIES 8

Sourabh26
Giga Guru

Hi,

 

Go to your catalog variable place and remove the dependent option "B" from the choice Nauru.

If you are handling this from client script then you need to do the changes over there.

 

Mark this as Helpful/Correct, if Applicable.

 

Regards,

Sourabh 

I did not understand . Could you please explain

Chetan Mahajan
Kilo Sage
Kilo Sage

Hi Anitha,

                 You have to create script include and call it from ref qual place (variable) like below

javascript: new ReferenceQualifierCheck().checkCity(current.variables.work);find_real_file.png

Create Script include as below

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

checkCity: function(option) {
gs.info("Check Option" + option);

if(option == 'b'){ // backend value of work->b
return "nameNOT LIKENauru";  // filter query from ref table
}
else{
return "nameISNOTEMPTY";
}
},
type: 'ReferenceQualifierCheck'
};

Kindly mark correct and helpful if applicable

I have some exiting condition in the reference qualifier 

find_real_file.png