Use Custom field renderer to popup skuid xml popup

So i am trying to use a custom field renderer to popup a skuid popup with details from the field

this is what i have got so far i keep getting an error saying that i have an unexpected identifier

Uncaught SyntaxError: Unexpected identifier

with this error in the VM skuid.utils.createPopupFromPopupXML('',[object Object]).open();

Heres the code

var field = arguments[0], $ = skuid.$; var popupXMLString =''' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '''; var cellElem = field.element; var context = { row: field.row.Id }; console.log(context); var log = "link pressed"; var javascript = "skuid.utils.createPopupFromPopupXML("+popupXMLString+","+field.row+").open();"; var link = 'Show Notes'; $( field.model.mergeRow( field.row, link ) ).appendTo( cellElem ); //var popup = skuid.utils.createPopupFromPopupXML(popupXML,context);

Hi Yakup,

Take a look at this tutorial Trigger popup from javascript?  Note that in this tutorial there is a line to convert the XML string into an XML document.

var popupXML = skuid.utils.makeXMLDoc(popupXMLString);<br>var popup = skuid.utils.createPopupFromPopupXML(popupXML,context);

This may be your problem.  Hope this gets you a little further.

Regards,
Irvin