
Hi,
I have a situation where, On Tab Change property of Form edition, show label checkbox is unchecked.
I want to handle thro' javascript. is this possible?
*This post is locked for comments
I have the same question (0)Hi Aniket,
Use the code below.
var TabLabel = Xrm.Page.ui.tabs.get("tabName").getLabel();
alert(TabName); //Output: "Lazy"
//Set Label method
Xrm.Page.ui.tabs.get("tabName").setLabel("Notoriously Lazy");
The important thing to note is that setLabel method will change the Tab Label Name in the form display but will not change the actual tab display name, so if the tab label was “Lazy” it will still remain “Lazy” in the form editor. You can verify this in the form editor.
See the links below.
https://abhishekserjam.wordpress.com/2015/02/04/microsoft-dynamics-crm-javascript-8-tabs/
Hope this helps.