Blog - Virtual Agent - How to display multiple choice values via script?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 02:56 AM - edited 04-01-2024 02:58 AM
Hello All,
Sharing the experience that I came across to display multiple choice values via script.
Use Dynamic Input Choice under "User Input" component.
(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;
})()
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.
Sujatha V.M.
0 REPLIES 0