How to reload the page in Service portal through an widget?

Subhashree3
Giga Contributor

Hi All,

I have one requirement where an widget in the service portal, I need to reload the form. PFB screenshot. 

This popup opens on click of a widget. My task is to reload the form on click of the highlighted button 'Assign task'.

find_real_file.png

Below is my code which has the method to be called on click of 'Assign task' button in the widget:

find_real_file.png

Please let me know your suggestion on this. Thank You.

1 ACCEPTED SOLUTION

Omkar Mone
Mega Sage

Hi 

You can use reload use window.location.reload(); to reload the page.

 

Hope this helps.

 

Regards,

Omkar Mone

View solution in original post

9 REPLIES 9

Omkar Mone
Mega Sage

Hi 

You can use reload use window.location.reload(); to reload the page.

 

Hope this helps.

 

Regards,

Omkar Mone

Hi Omkar,

I tried this in the Client controller of the widget but page is not reloading. Is there any other suggestions which will be helpful in the widget?

Thank You.

Hi 

Can you show me the code where did you add this?

Hi,

Here it goes..

find_real_file.png

Please let me know if anything else has to be taken care from my end.