Home Analyst Portal

Redirect to different page after submitting request

Paul_HardingPaul_Harding Customer IT Monkey ✭
Is it possible to redirect users back to the home page after they submit requests via offerings. By default it seems to redirect them to the My Requests page and confirms the saving of the request with the green banner. We are currently hiding the My Requests and Team Requests views from users so a blank page is displayed.

Best Answer

Answers

  • Paul_HardingPaul_Harding Customer IT Monkey ✭

    Hi Geoff, that sounds like a great way to implement for now and easy to remove once we are happy to go live fully with My Requests. Your help would be appreciated please.

    Thanks,

    Paul

  • Ian_StephensonIan_Stephenson Customer IT Monkey ✭
    Would it be possible to get the java script you use for this? I've not done much in Java but this is the exact issue I am currently trying to solve!

    Thanks!
  • Justin_WorkmanJustin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭
    @Ian_Stephenson - This works for me:

    $(document).ready(function () {
    	setTimeout(function() {
    		var url = window.location.href;
    		var desiredURL = "/View/94ecd540-714b-49dc-82d1-0b34bf11888f";
    		if (url.indexOf("c5161e06-2378-4b44-aa89-5600e2d3b9d8") > 0 ) {
    			window.open(desiredURL, '_self');
    		}
    	}, 1500);
    });
    You should be able to add that right into custom.js.
  • Ian_StephensonIan_Stephenson Customer IT Monkey ✭
    @Justin_Workman - It worked!!!!!!!!!!!!!!

    Thank you so much, I really appreciate the fast response and help. 
Sign In or Register to comment.