Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Unable to redirect page after Survey is created?

$
0
0

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&amp;listtemplate=102&amp;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&amp;listtemplate=102&amp;isDlg=0&amp;Source=../_layouts/15/viewlsts.aspx'); return false;">

Thanks.

John. 



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>