Announcements
No record found.
I need to check the current tab's name (the on I click on) and according to that to run some functionality, how do I find a tab's name?
(working on 36 on-premise uci)
Hi damka,
You can try below piece of code.
let currentTab="";
formContext.ui.tabs.forEach(tab=>{
if (tab.getDisplayState() === "expanded") {
currentTab = tab.getLabel()
}
)
Thanks,
Ketan
Hi,You can add below function on form load of any entity:
function getAllTabs (executionContext) { 'use strict'; var formContext = executionContext.getFormContext(); var tabs = formContext.ui.tabs.get(); // all tabs for (var i = 0; i < tabs.length; i ) { if(tabs[i].getLabel() === "") { //add your logic here //for section only: -get all sections var sections = tabs[i].sections.get(); for (var j = 0; j < sections.length; j ) { var controls = sections[j].controls.get(); //add your logic here } } } }
Hi,
Please check out this link: learn.microsoft.com/.../getdisplaystate
Hello User,
Please check out below article which will help you to implement your requirement on Tab change, let me know if you need more information or facing any issue during implementing it.
www.crmcrate.com/.../
Thank you,
Amit Katariya
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
ManoVerse 180 Super User 2026 Season 1
11manish 123
CU11031447-0 100