Home Survey App

Change landing page after a survey taken

Adrian_MataiszAdrian_Mataisz Customer Advanced IT Monkey ✭✭✭
We would like to hide the My Survey Page and have survey link send by email for each WI completed. 
Is it possible to change the landing page after a survey is taken?

Right now it lands back to the My Survey page  and we don't want for user to see it. 

Answers

  • Alex_MarshAlex_Marsh Premier Partner Advanced IT Monkey ✭✭✭
    Yes we would also like to be able to do this. I can see a routes.js that contains all of the locations. Would it be possible to modify this?
  • Joe_BurrowsJoe_Burrows Cireson Devops Super IT Monkey ✭✭✭✭✭
    edited October 2016
    Its possible but not a supported solution.

    If you wanted to go down the unsupported route you would have to make a change the in the controllers.js file, inside the cSurveysCreate function there is a $scope.complete function. In that function is where the saveSurvey function is run and in the .then() statement is where the $location.path is set when they save.

    Example: To make it go back to the portal ‘my requests’ view, or to ‘my work’ if the user is an analyst

    /save the survey to the DB

          sSurvey.saveSurvey($scope._survey, s).then(function (data) {

            //$location.path("mySurvey");

            $window.location.pathname = "";

Sign In or Register to comment.