Calling a UI script in VA and display as HTML in output

Yousuf Kamal
Kilo Guru

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:

render0.PNG

 

in the script I have a variable "renderedCard" where the html is stored.

render.PNG

 

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.

0 REPLIES 0