How to set the footer only in the home page ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 07:17 AM
Hi All,
I have a requirement to hide the footer in all the pages except the Home page.
Hide form the Catalog form page, incident page.
The footer height is big as attached, i couldn't see the submit option in the catalog and incident submission page. Any one can guide me to hide the footer or how to adjust the catalog form page to see the submit option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2023 04:39 AM
Hello @KS12
Go to Service Portal > Header|Footer > Your footer page.
Go to HTML code snippet and give ng-if="data.foot" in top most div tag
Write a server script for the same :-
var page_id = $sp.getParameter('id');
if(page_id=='ID of homepage'){
data.foot = true;
}
else{
data.foot=false;
}
Plz mark my solution as Accept, If you find it helpful.
Regards,
Samaksh