- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 04:42 AM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 05:32 AM
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);
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 04:51 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 05:07 AM
I did not understand . Could you please explain

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 05:32 AM
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);
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 06:20 AM