Hide items in CSM Portal - Login Page

Gaurav_S0107
Tera Contributor

Hi,

I would like to hide "My Tasks" , "My Requests" , "My Favorites" only from the login page: csm_login.

These options are present in the widget: Employee Center Header: 

 

Gaurav_S0107_0-1727926483821.png

Gaurav_S0107_1-1727926790095.png

 

 

I tried hiding it with CSS like: 

/* Hide My Tasks, My Requests, My Favorites only on the CSM login page */
body.csm_login #todos_link, /* My Tasks */
body.csm_login #cases_popup, /* My Requests */
body.csm_login #favorites { /* My Favorites */
display: none !important;
}

/* These elements are visible on other pages */
body:not(.csm_login) #todos_link,
body:not(.csm_login) #cases_popup,
body:not(.csm_login) #favorites {
display: block !important;
}

 

and also tried with Client Script: 

(function() {
var loginPage = '/csm_login'; // the page is named '/csm_login'
if (window.location.pathname === loginPage) {
document.body.classList.add('login-page');
}
})();

CSS to hide : 

.login-page #todos_link,
.login-page #cases_popup,
.login-page #favorites,
.login-page #my_company_desktop {
display: none !important;
}

Any suggestions/help how to do it ?

 

Thanks in Advance!!

1 REPLY 1

Pradeep Thipani
Mega Sage

Hi @Gaurav_S0107 ,

 

You can hide those options from below record,

 

your_instance_URL/sp_instance_menu.do?sys_id=493d01365368301056c1ddeeff7b1207&sysparm_domain=null&sysparm_record_scope=4249e63a28d54d61bb6fbf61fd86cccb&sysparm_domain_scope=null&sysparm_nostack=true

 

 

Make the respective button value to false,

PradeepThipani_0-1727928790392.png

 

 

"If this response was useful, please select 'Accept as Solution' and mark it as 'Helpful.' This helps me provide better answers and assists the community ".

Regards,
Pradeep