Calling a UI script in VA and display as HTML in output
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 07:55 AM
Hi,
I have a HTML stored in UI script and need to call it in VA Script type output (SinglePartOutMsg).
I have created a UI script as follows:
in the script I have a variable "renderedCard" where the html is stored.
now I need to render this HTML is VA somehow. I am able to fetch UI script into VA using following code:
(function execute() {
var str = '<html><head>'
str+= '<script language="javascript" src="demo1.jsdbx"></script>'
str+='</head>'
str+='<body>'
str+='</body></html>'
var singleOutMsg = new sn_cs.SinglePartOutMsg();
singleOutMsg.setHtmlPart(str);
return singleOutMsg;
})()
But the issue is how to fetch the HTML from variable "renderedCard" of UI script to HTML of VA.
Any assistance is appreciated.
Labels:
- Labels:
-
Virtual Agent
0 REPLIES 0