How to show choice table choice in virtual agent
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2024 11:33 AM
Hi Team,
Present i am using below code to display Choice table categories, the below code is working fine to show all categories
Dynamic choice input Script:
(function execute() {
var choiceList = global.VAChoiceListGenerator('incident', 'category');
var options = [];
for (var i=0; i < choiceList.getSize(); i++){
options.push({ 'value': choiceList.getChoice(i).getValue(), 'label': choiceList.getChoice(i).getLabel() });
}
return options;
})()
Script include:
function VAChoiceListGenerator(table, field, dependend){
var choices = new GlideChoiceListGenerator(table, field, dependend);
return choices.get();
}
We have another field, "category automation (true or false)," in the choice table.
My requirement is
Show categories if category automation is true.
My requirement is
Show categories if category automation is true.
0 REPLIES 0