Notifications
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 83 Super User 2025 Season 2
Gerardo RenterÃa Ga... 49 Most Valuable Professional
#ManoVerse 40