Answered by:
How to disable Tab ??

Question
-
Dear all,
I would like to ask regarding on Contact.
As we know for each Contact, they have many Tab. Can we disable one of the them??
Let say we have 3 Tab in Contact form,
1) General
2) Details
3) Administration.
Then i want the Details Tab to be disable from other users to view it.
Note : : 0nly the owner of Contact can view the Details Tab.
Wednesday, December 5, 2007 1:59 AM
Answers
-
Hi Cosmic,
I think the easier way is hide the tab rather that disable it.
to hide a tab:
/*hide a tab(tab number comes from 0)*/
crmForm.all.tab2Tab.style.display = 'none';
http://jianwang.blogspot.com/2007/11/crm-how-to-hide-field-label-line.html
to disable a tab and it's belongings, have a look of my blog:
http://jianwang.blogspot.com/2007/11/how-to-disable-readonly-crm-fields.html
Regards,
Jim
Wednesday, December 5, 2007 11:37 AMModerator
All replies
-
Hi Cosmic,
I think the easier way is hide the tab rather that disable it.
to hide a tab:
/*hide a tab(tab number comes from 0)*/
crmForm.all.tab2Tab.style.display = 'none';
http://jianwang.blogspot.com/2007/11/crm-how-to-hide-field-label-line.html
to disable a tab and it's belongings, have a look of my blog:
http://jianwang.blogspot.com/2007/11/how-to-disable-readonly-crm-fields.html
Regards,
Jim
Wednesday, December 5, 2007 11:37 AMModerator -
Hai Jim..
Thanks 4 your advise..
i have test your code and it works..
but how can i set that the tab that we hidden can only view by the owner of the form.??
Regards,
Mr.Cosmic
Thursday, December 6, 2007 9:29 AM -
Hi,
You may have look this blog: http://ronaldlemmen.blogspot.com/2006/05/finally-there-show-and-hide-fields.html
Basicly:
1. get current logon userid
2. compare it with owner.id
Cheers,
Jim
Thursday, December 6, 2007 11:14 AMModerator -
Hai Jim,
thanks for the blog url..
But i dont know how to use the code. May u help me?
My situation is like this.
I have a Contact, and then i key in all the information for this contact.
They have 3 Tabs General, Details and Administration
and then i SAVE.
Next day some user open my contact.
But the user should see the General Tab only. It is possible??
Wednesday, December 12, 2007 7:37 AM