Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Object to hide Administration icon

AlexandrosKras
Collaborator III

Hi all,

 

I want to hide the Administration icon (up right) when a user logins because I provided Datafeed access and I don't want them to go through the Datafeed...

I know that you can hide Copy button, etc. but Administration icon?

Any ideas?

17 REPLIES 17

Here it is -Admin-Icon.png

Thanks, try:

<script type="text/javascript">
     $('.jss560[title="Administration"]', window.parent.parent.document).hide();
</script>
 

 Advisory Consultant

Yes sir

It works like a charm!

Thank you -

sandeepgrc_4
Contributor II

 

Below code is not working in 6.9P2 and throws an error ('$' is undefined) in F12console.

<script type="text/javascript"> $('.ABO-NAV-anv241[title="Administration"]', window.parent.parent.document).hide(); </script>

@DavidPetty 

@sandeepgrc_4, is this in a custom object or a custom iView?

 Advisory Consultant

@DavidPetty, Custom iView

@sandeepgrc_4, thanks.

You could go old school JavaScript to get to the element or add the following to the custom iView to load the jQuery framework,

<script type="text/javascript" src="/shared/scripts/jquery/jquery.js"></script>

 Advisory Consultant

@DavidPetty,  Ahh! Thank you. It worked