Blog - Virtual Agent - How to display multiple choice values via script?

Sujatha V M
Kilo Patron
Kilo Patron

Hello All, 

 

Sharing the experience that I came across to display multiple choice values via script. 

 

Use Dynamic Input Choice under "User Input" component. 

 

SujathaVM_0-1711965033509.png

 

(function execute() {
//Choices are modified as "Value - Label" pair expressions for Password Reset.
 
var options = [];
options.push({ 'value': 'ad', 'label': "Active Directory", 'render_style': 'data' });
options.push({ 'value': 'pwd_other', 'label': "Reset Password/Other Applications", 'render_style': 'data' });
options.push({ 'value': 'pwd_someone', 'label': "Reset Password/Someone Else", 'render_style': 'data' });
return options;
})()
 
SujathaVM_1-1711965339204.png
 

 

Please mark this as helpful, if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.
0 REPLIES 0