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);