Virtual Agent Dynamic choise input - new line character
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2024 01:49 AM
in Virtual Agent I am creating dynamic choise input following:
[{"value":"id of case","label": " some label\nnew line"}].
But new line character (\n) is trimed from menu.
Is there way how to add new lines to have more user friendly menu?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2024 03:34 AM - edited 05-13-2024 03:34 AM
@js20 In dynamic choice input scripting section, did you try to add as below?
var options = [];
options.push({ 'value': 'option_1', 'label': "Option 1", 'render_style': 'data' });
options.push({ 'value': 'option_2', 'label': "Option 2", 'render_style': 'data' });
return options;
Please mark this as helpful and accept it as a solution if this resolves your query.
Thanks,
Sujatha V.M.
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2024 04:18 AM
I dont see new line in your example . I want to hame menu looking like this:
Inc Number: 12345
Status: New
-----------------------------
Inc Number: 67788
Status: New
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2024 04:24 AM
I assumed you are trying to get those options in new lines. The above message is much clear on what's your expectation. Let me give it a try.
Please mark this as helpful and accept it as a solution if this resolves your query.
Thanks,
Sujatha V.M.
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2024 05:26 AM
sorry for confusion , same menu item but 2 lines in each.