I have the following code to hide a navigation bar entry.
document.getElementById("navSubConts").style.display = "none";
This code works very well. But want I need to do is hide a navigation bar
entry only if there are not records assoicated with the record I am in. For
instance, if I am in an account and there are not opportunities for that
account, I don' t want to see the opportunities entry in the navigation bar.
Is this possible?

Thanks

RE: Hide Navigation bar entry when an associated record does not exist by NicolasPags

NicolasPags
Tue May 06 15:48:37 CDT 2008

Hi,

My first guess would be to make a web service call from your script to find
out how many contacts are related to the current account.

--
Nicolas Pagès


"Jamie" wrote:

> I have the following code to hide a navigation bar entry.
> document.getElementById("navSubConts").style.display = "none";
> This code works very well. But want I need to do is hide a navigation bar
> entry only if there are not records assoicated with the record I am in. For
> instance, if I am in an account and there are not opportunities for that
> account, I don' t want to see the opportunities entry in the navigation bar.
> Is this possible?
>
> Thanks