- 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 06:21 AM
Hi Chetan,
How can we add this conditions as well in reference qualifier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 07:13 AM
Hi Chetan,
Thank you so much its working.
Thanks Anitha H V

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 08:28 AM
Great 🙂 glad to help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2024 05:24 AM
This is my code but it's not working and I'm using order guide and based on first form field selection the second form's field should be filtered which is a refernce field