On Portal, after submitting a request, want to redirect to a page and then show the Info message

sn123
Kilo Contributor

Hi,

Please see the below Screenshot:

On submitting a request through Portal, i want to first redirect to sp_home page and then display below message on it:

find_real_file.png

Can anyone help, tried to update the client controller on widget with no success.

18 REPLIES 18

vinitha3
Tera Guru

Hi,



You can write an onsubmit catalog client script for that Record producer/catalog item.



var URL = "?id=submission_thanks";   //Redirect part of widget sc item custom


top.window.location = URL;



Thanks,


Vinitha.K


sn123
Kilo Contributor

It is in general for all the catalog items, but i want to make this for sc_home portal page, after clicking 'Submit Button'.


You can write an onsubmit catalog client script for that Record producer/catalog item.



var URL = "?id=submission_thanks";   //Redirect part of widget sc item custom


top.window.location = URL;



don't use this solution as it will cause intermittently not submission of Record Producer on Service Portal when many customers are requesting.



Thanks,
Shivam


check this out ,it is working for the redirect to delay info message and it is redirect to homepage



if (g_form)


g_form.submit();


setTimeout(redirectpage, 5000);


}




function redirectpage()


{


document.location = "/sp/";


}