Trigger popup from javascript?

Like this:

new javascript in-line (NOT snippet)

function popupWindow() { var popupXMLString = '<popup title=" " width="70%">' + '<components>' +'<includepanel type="skuid" uniqueid="sk-VyQ_Q-161" pagename="UCCNew" module=""/>' +'</components>' +'</popup>'; var popupXML = skuid&#46;utils&#46;makeXMLDoc(popupXMLString); popup = skuid&#46;utils&#46;createPopupFromPopupXML(popupXML); }

Then a template component that looks like this:

<a target="popup" onclick="return popupWindow('')" title="Create a New Entity Search"  > Some text or img src here </a>

Note that lack of an href on that tag, so you’re link doesn’t go anywhere but popup.

Also, I didn’t need a context, because my popup is a page include of a create new record page. But if you wanted context you can add that by referencing a model like is shown in the examples above.