Hi,
I have the following code in a Script Editor Web Part.
<input type="button" value="Add Survey" onclick="openPopup('../_layouts/15/new.aspx?featureid=%7B00bfea71-eb8a-40b1-80c7-506be7590102%7D&listtemplate=102&Source=http%3A%2F%2Fourdomain%2FJohnTest%2F%5Flayouts%2F15%2Fviewlsts.aspx','Adding Survey','','',''); return false;"></input>
The openPopup function just opens a dialog using SP.UI.ModalDialog.showModalDialog(options).
I cannot get the page to redirect after the survey is created. Do I need to call an inbuilt Dialog Pop-up to get "&source" picked up and used?
Have tried the
onclick="javascript:SP.UI.ModalDialog.ShowPopupDialog('../_layouts/15/new.aspx?featureid=%7B00bfea71-eb8a-40b1-80c7-506be7590102%7D&listtemplate=102&isDlg=0&Source=../_layouts/15/viewlsts.aspx'); return false;">
Thanks.
John.
- Edited by John Guilbert 19 hours 8 minutes ago