Logout button on custom landing page

Hello Helical Insight,

I am using helical insight 4.1 GA and I have created custom landing page by following this blog

https://forum.helicalinsight.com/t/is-it-possible-to-have-role-based-landing-dashboard-customization/494

Can we add custom logout button in efw Report/ custom landing page? If yes how to do that.

Thank You,
Jam.

Hello Jam,

Steps :

  1. In the html file , create a button
  2. Provide this function in the script tags
$("#LogOut").on('click',function(){
window.open(window.baseUrl+"j_spring_security_logout",'_self');
});
  1. If we click on logout button , it calls the API to perform the operation
    image

Thank You,
Helical Insight.