none
Surveys Sharepoint 2013 RRS feed

  • Question

  • Good day.

    I need your assistant, i have an announcement list and when creating a new announcement on the form i have created a button using javascript to generate a survey this is my code:

    $(document).ready(function () {
    $('.ms-metadata').append('<button onclick="submitGo(); return false;">Generate Survey</button>');
    });
    function submitGo(){
    window.location = ('http://scoinspoint01/_layouts/15/new.aspx?FeatureId=%7B00bfea71%2Deb8a%2D40b1%2D80c7%2D506be7590102%7D&ListTemplate=102&');
    }

    So it will open the survey page and what i need is when i click ob the Finish button of the survey, i want it to save and close the survey, redirect back to the announcement i was and store the survey link to the field called survey link (e.g  http://scoinspoint01/Lists/omphilesurvey/Newform.aspx) on the announcement form. There will be many surveys created by different users so it should apply to all the users, i dont know if this is possible and how to start manipulating the finish button of the survey form.

    Please assist.

    Thanks

    Tuesday, April 25, 2017 2:27 PM

All replies